Skip to content

Commit 028f337

Browse files
authored
fix(otlp): add trailing slash to OTLP traces URL (#14850)
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.
1 parent b12363a commit 028f337

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/codeContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const DEFAULTS: CodeKeywords = {
8787
MINIDUMP_URL:
8888
'https://o0.ingest.sentry.io/api/0/minidump/?sentry_key=examplePublicKey',
8989
UNREAL_URL: 'https://o0.ingest.sentry.io/api/0/unreal/examplePublicKey/',
90-
OTLP_TRACES_URL: 'https://o0.ingest.sentry.io/api/0/otlp/v1/traces',
90+
OTLP_TRACES_URL: 'https://o0.ingest.sentry.io/api/0/otlp/v1/traces/',
9191
title: `example-org / example-project`,
9292
},
9393
],
@@ -140,7 +140,7 @@ const formatUnrealEngineURL = ({scheme, host, pathname, publicKey}: Dsn) => {
140140
};
141141

142142
const formatOtlpTracesUrl = ({scheme, host, pathname}: Dsn) => {
143-
return `${scheme}${host}/api${pathname}/otlp/v1/traces`;
143+
return `${scheme}${host}/api${pathname}/otlp/v1/traces/`;
144144
};
145145

146146
const formatApiUrl = ({scheme, host}: Dsn) => {

0 commit comments

Comments
 (0)