getsentry / getsentry/sentry-java
Consider disabling usage of `SentryReactorThreadLocalAccessor` if OpenTelemetry is used
未关闭
Java
Spans
Task
- 主要语言
- Kotlin
- 星标
- 1.4k
- 派生
- 478
- 平均合并
- 2 天 22 小时
- 30 天内合并 PR
- 69
描述
### 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`.
贡献指南
调研方向
搜索 SentryReactorThreadLocalAccessor 和 SentryReactorUtils,然后检查它们的 WebFlux 集成以及 sentry.reactive.thread-local-accessor-enabled 属性。确定如何检测 OpenTelemetry 的使用,并保留该属性作为显式覆盖。当使用 OpenTelemetry 时跳过 SentryReactorUtils,除非该属性为 true,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, spring
- 领域
- backend, observability
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100