From 21002e4fe8d395a2bf98f1f05beae88689df178c Mon Sep 17 00:00:00 2001 From: Matt Quinn Date: Tue, 9 Sep 2025 11:11:00 -0400 Subject: [PATCH] fix(otlp): add trailing slash to OTLP traces URL We don't yet support the version of the OTLP traces URL without a trailing slash, even though we'd like to. In the meantime, add a trailing slash. The version without a trailing slash currently 404s. --- src/components/codeContext.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/codeContext.tsx b/src/components/codeContext.tsx index 35eec4e2662de..e70635a4eec1c 100644 --- a/src/components/codeContext.tsx +++ b/src/components/codeContext.tsx @@ -87,7 +87,7 @@ export const DEFAULTS: CodeKeywords = { MINIDUMP_URL: 'https://o0.ingest.sentry.io/api/0/minidump/?sentry_key=examplePublicKey', UNREAL_URL: 'https://o0.ingest.sentry.io/api/0/unreal/examplePublicKey/', - OTLP_TRACES_URL: 'https://o0.ingest.sentry.io/api/0/otlp/v1/traces', + OTLP_TRACES_URL: 'https://o0.ingest.sentry.io/api/0/otlp/v1/traces/', title: `example-org / example-project`, }, ], @@ -140,7 +140,7 @@ const formatUnrealEngineURL = ({scheme, host, pathname, publicKey}: Dsn) => { }; const formatOtlpTracesUrl = ({scheme, host, pathname}: Dsn) => { - return `${scheme}${host}/api${pathname}/otlp/v1/traces`; + return `${scheme}${host}/api${pathname}/otlp/v1/traces/`; }; const formatApiUrl = ({scheme, host}: Dsn) => {