Skip to content

Commit

Permalink
fix: set otel url on web build
Browse files Browse the repository at this point in the history
  • Loading branch information
sprutton1 committed Aug 19, 2024
1 parent 5c20684 commit 89d7970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/web/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit 89d7970

Please sign in to comment.