getsentry / getsentry/sentry-java

Ok Http Retry Tracking using the EventListner API?

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

描述

### Description

Hello Team, I have a question about how we are tracking the network metrics using the OkHttp EventListenerAPI here - https://github.com/getsentry/sentry-java/blob/main/sentry-okhttp/src/main/java/io/sentry/okhttp/SentryOkHttpEventListener.kt

From my understanding, with the current implementation, if a request is retried, the event listener only captures metrics for the latest attempt and does not track metrics for each retry separately. So, if there are three requests (one original and two retries), we only see metrics for the last one. I understand that some metrics, like CONNECT, SSL, and DNS, would only be recorded for the initial request since OkHttp reuses the connection. However, other metrics could still be relevant for retries.

Was there a specific reason for implementing it this way?

Looking forward to your insights!

貢獻指南

開啟貢獻指南

研究方向

Start with sentry-okhttp/src/main/java/io/sentry/okhttp/SentryOkHttpEventListener.kt and the OkHttp EventListener API to understand how attempts are observed. The issue does not define a requested change or acceptance criteria; clarify whether retry attempts should be tracked separately and what completion means before implementation.

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

評估

技術堆疊
kotlin
領域
observability
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
15/100

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

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