getsentry / getsentry/sentry-java
Reevaluate traceId generation places
未关闭
Java
Task
Traces
- 主要语言
- Kotlin
- 星标
- 1.4k
- 派生
- 478
- 平均合并
- 2 天 23 小时
- 30 天内合并 PR
- 67
描述
### Description
There is an "issue" with ANRs [not having the same traceId]() of the currently running transaction, if the transaction finishes right before the ANR occurs.
This is due to our TWP implementation. Should we change it?
It would mean to either
* understand if an anr is likely going to occur and don't overwrite the stored traceId when the current span finishes
* replace the traceId stored from spans only after at least 5 seconds, ensuring that the traceId stored in the `PersistingScopeObserver` is used only by ANRs
贡献指南
评估
这个 Issue 还没有评估数据。