@@ -14,6 +14,7 @@ type ProjectCodeKeywords = {
1414 ORG_ID : number ;
1515 ORG_INGEST_DOMAIN : string ;
1616 ORG_SLUG : string ;
17+ OTLP_TRACES_URL : string ;
1718 PROJECT_ID : number ;
1819 PROJECT_SLUG : string ;
1920 PUBLIC_DSN : string ;
@@ -86,6 +87,7 @@ export const DEFAULTS: CodeKeywords = {
8687 MINIDUMP_URL :
8788 'https://o0.ingest.sentry.io/api/0/minidump/?sentry_key=examplePublicKey' ,
8889 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' ,
8991 title : `example-org / example-project` ,
9092 } ,
9193 ] ,
@@ -137,6 +139,10 @@ const formatUnrealEngineURL = ({scheme, host, pathname, publicKey}: Dsn) => {
137139 return `${ scheme } ${ host } /api${ pathname } /unreal/${ publicKey } /` ;
138140} ;
139141
142+ const formatOtlpTracesUrl = ( { scheme, host, pathname} : Dsn ) => {
143+ return `${ scheme } ${ host } /api${ pathname } /otlp/v1/traces` ;
144+ } ;
145+
140146const formatApiUrl = ( { scheme, host} : Dsn ) => {
141147 const apiHost = host . indexOf ( '.ingest.' ) >= 0 ? host . split ( '.ingest.' ) [ 1 ] : host ;
142148
@@ -229,6 +235,7 @@ export async function fetchCodeKeywords(): Promise<CodeKeywords> {
229235 parsedDsn . host ?? `o${ project . organizationId } .ingest.sentry.io` ,
230236 MINIDUMP_URL : formatMinidumpURL ( parsedDsn ) ,
231237 UNREAL_URL : formatUnrealEngineURL ( parsedDsn ) ,
238+ OTLP_TRACES_URL : formatOtlpTracesUrl ( parsedDsn ) ,
232239 title : `${ project . organizationSlug } / ${ project . projectSlug } ` ,
233240 } ;
234241 } ) ,
0 commit comments