You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a follow-up to #678, which was closed before the actual issue got resolved.
When using the otel integration for tracing, but sentry for exceptions, the sentry middleware always starts a transaction, which is then "invisible" to the otel integration (regardless of middleware ordering; more info in #679) and causes sampling decisions to diverge.
Summary
This is a follow-up to #678, which was closed before the actual issue got resolved.
When using the otel integration for tracing, but sentry for exceptions, the sentry middleware always starts a transaction, which is then "invisible" to the otel integration (regardless of middleware ordering; more info in #679) and causes sampling decisions to diverge.
Steps To Reproduce
Initialize otel with:
Initialize sentry with:
All traces created with
otel.Tracer("").Start()
will havespan.IsSampled() == true
, but none of them will be sent to sentry.Switching the to
NeverSample()
/TracesSampleRate: 1.0
causes the opposite problem.Expected Behavior
Both stacks would agree on sampling.
Environment
SDK
sentry-go
version: v0.27.0Sentry
The text was updated successfully, but these errors were encountered: