Skip to content

Commit

Permalink
Merge pull request #4288 from systeminit/fix/otelendpoint
Browse files Browse the repository at this point in the history
fix: otelendpoint is undefined
  • Loading branch information
jobelenus authored Aug 6, 2024
2 parents de72cb7 + 85f66b3 commit b52fe4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/web/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ import store from "./store";

const { envVariables } = getProjectEnvVariables();

const otelEndpoint =
let otelEndpoint =
envVariables.VITE_OTEL_EXPORTER_OTLP_ENDPOINT ??
import.meta.env.VITE_OTEL_EXPORTER_OTLP_ENDPOINT;
if (!otelEndpoint) otelEndpoint = window.location.host;
const sdk = new HoneycombWebSDK({
endpoint: `${otelEndpoint}:4318/v1/traces`,
serviceName: "si-vue",
Expand Down

0 comments on commit b52fe4a

Please sign in to comment.