From 89d79708b03f53275ad013165a016b17cbeabd69 Mon Sep 17 00:00:00 2001 From: Scott Prutton Date: Mon, 19 Aug 2024 17:37:55 -0400 Subject: [PATCH] fix: set otel url on web build --- app/web/src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/web/src/main.ts b/app/web/src/main.ts index b06d0425d3..786fb38cfe 100644 --- a/app/web/src/main.ts +++ b/app/web/src/main.ts @@ -28,9 +28,9 @@ const { envVariables } = getProjectEnvVariables(); let otelEndpoint = envVariables.VITE_OTEL_EXPORTER_OTLP_ENDPOINT ?? import.meta.env.VITE_OTEL_EXPORTER_OTLP_ENDPOINT; -if (!otelEndpoint) otelEndpoint = window.location.host; +if (!otelEndpoint) otelEndpoint = window.location.hostname; const sdk = new HoneycombWebSDK({ - endpoint: `${otelEndpoint}/v1/traces`, + endpoint: `${otelEndpoint}`, serviceName: "si-vue", skipOptionsValidation: true, instrumentations: [