getsentry / getsentry/sentry-java

Do not set TraceContext.origin for exceptions when no active transaction available

未關閉
#3,143 3 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
Android Improvement Traces
主要語言
Kotlin
星號
1.4k
分支
478
平均合併
3 天 4 小時
30 天內合併 PR
72

描述

### Description

https://sentry-sdks.sentry.io/issues/4567235831/?project=5428559&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=7d&stream_index=0

![image](https://github.com/getsentry/sentry-java/assets/4999776/33315a74-faa7-4c3c-bb57-6074d7bc4eb4)

After TwP we set the trace origin to `manual` by default, but probably we shouldn't just set it for errors if there's no active transactions, otherwise it looks a bit weird

貢獻指南

開啟貢獻指南

研究方向

首先定位 TraceContext.origin 的指派位置,並檢查如何判定例外是否有可用的作用中交易。根據回報的案例確認這項變更,確保沒有作用中交易的例外不再接收手動 trace origin。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java, kotlin
領域
observability-sre
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。