Skip to content

Commit

Permalink
Added workaround for Sentry disabling OTel
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
daniellockyer committed Nov 12, 2024
1 parent f5da65f commit 070a35a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ if (process.env.SENTRY_DSN) {
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV || 'unknown',
release: process.env.K_REVISION,

// Enabled sampling but disable default integrations
// Without this, OTel won't work, and I'm not sure why
defaultIntegrations: false,
tracesSampleRate: 1.0,
});
}

Expand Down

0 comments on commit 070a35a

Please sign in to comment.