Skip to content

Commit

Permalink
Fix: Remove trace on media to remove unnecessary trace headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Vija02 committed Feb 11, 2025
1 parent 5cc9ba7 commit 79e1712
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/observability/src/initBrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,15 @@ export const initBrowser = (serviceName: string, env: string) => {

// Registering instrumentations
registerInstrumentations({
instrumentations: [getWebAutoInstrumentations({})],
instrumentations: [
getWebAutoInstrumentations({
"@opentelemetry/instrumentation-fetch": {
propagateTraceHeaderCorsUrls: [
new RegExp(`^(?!${window.location.origin}/media/data/).*$`),
],
},
}),
],
});
}
};

0 comments on commit 79e1712

Please sign in to comment.