getsentry / getsentry/sentry-java
Consider disabling usage of `SentryReactorThreadLocalAccessor` if OpenTelemetry is used
Open
Java
Spans
Task
- Dominant language
- Kotlin
- Stars
- 1.4k
- Forks
- 478
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 67
Description
### Description
`SentryReactorThreadLocalAccessor` should not be necessary if OpenTelemetry is used for scope propagation through its `Context` instead of relying on our own `ThreadLocal`.
Also see https://github.com/getsentry/sentry-java/issues/4806
We could skip using `SentryReactorUtils` in WebFlux if OpenTelemetry is being used, unless `sentry.reactive.thread-local-accessor-enabled` is set to `true`.
Contributor guide
Assessment
This issue has not been assessed yet.