Skip to content

Commit c871587

Browse files
authored
fix(otlp): Update OTLP URLs (#15099)
Use the new `/integration/` paths for the OTLP logs and traces endpoints. (This is new for traces and corrects a typo for logs).
1 parent bbb47c0 commit c871587

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/codeContext.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ export const DEFAULTS: CodeKeywords = {
8888
MINIDUMP_URL:
8989
'https://o0.ingest.sentry.io/api/0/minidump/?sentry_key=examplePublicKey',
9090
UNREAL_URL: 'https://o0.ingest.sentry.io/api/0/unreal/examplePublicKey/',
91-
OTLP_TRACES_URL: 'https://o0.ingest.sentry.io/api/0/otlp/v1/traces/',
92-
OTLP_LOGS_URL: 'https://o0.ingest.sentry.io/api/0/integrations/otlp/v1/logs/',
91+
OTLP_TRACES_URL: 'https://o0.ingest.sentry.io/api/0/integration/otlp/v1/traces/',
92+
OTLP_LOGS_URL: 'https://o0.ingest.sentry.io/api/0/integration/otlp/v1/logs/',
9393
title: `example-org / example-project`,
9494
},
9595
],
@@ -142,11 +142,11 @@ const formatUnrealEngineURL = ({scheme, host, pathname, publicKey}: Dsn) => {
142142
};
143143

144144
const formatOtlpTracesUrl = ({scheme, host, pathname}: Dsn) => {
145-
return `${scheme}${host}/api${pathname}/otlp/v1/traces/`;
145+
return `${scheme}${host}/api${pathname}/integration/otlp/v1/traces/`;
146146
};
147147

148148
const formatOtlpLogsUrl = ({scheme, host, pathname}: Dsn) => {
149-
return `${scheme}${host}/api${pathname}/integrations/otlp/v1/logs/`;
149+
return `${scheme}${host}/api${pathname}/integration/otlp/v1/logs/`;
150150
};
151151

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

0 commit comments

Comments
 (0)