getsentry / getsentry/sentry-java
Reevaluate traceId generation places
未關閉
Java
Task
Traces
- 主要語言
- Kotlin
- 星號
- 1.4k
- 分支
- 478
- 平均合併
- 3 天 4 小時
- 30 天內合併 PR
- 72
描述
### 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
貢獻指南
研究方向
先閱讀 TWP 實作和 PersistingScopeObserver,然後查看 issue #4648,了解 ANR 和 traceId 情境。確定交易在 ANR 之前剛結束時應保留哪個 traceId,並確定採用的策略;該 issue 未指定具體的測試或其他檔案。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- android, java, kotlin
- 領域
- mobile, observability
- Issue 類型
- 重構
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 30/100