Skip to content

Commit cff7bcd

Browse files
committed
Added workaround for Sentry disabling OTel
- for some reason, Sentry is disabling OTel unless you enable tracing in Sentry, I don't know why - to workaround that, we can enable tracing but disable all the integrations
1 parent f5da65f commit cff7bcd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/instrumentation.ts

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ if (process.env.SENTRY_DSN) {
1414
dsn: process.env.SENTRY_DSN,
1515
environment: process.env.NODE_ENV || 'unknown',
1616
release: process.env.K_REVISION,
17+
18+
// Enabled sampling but disable default integrations
19+
// Without this, OTel won't work, and I'm not sure why
20+
defaultIntegrations: false,
21+
tracesSampleRate: 1.0,
1722
});
1823
}
1924

0 commit comments

Comments
 (0)