-
-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change OkHttp sub-spans to span attributes #3556
Conversation
…th setData removed http timeout handling in SentryOkHttpEventListener SentryOkHttpInterceptor now closes the http call
renamed constants to make them nicer in the UI updated tests
|
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
a0f7731 | 357.02 ms | 433.40 ms | 76.38 ms |
41e496a | 408.90 ms | 491.32 ms | 82.42 ms |
ca82680 | 490.88 ms | 631.67 ms | 140.80 ms |
2f49b9c | 416.54 ms | 479.14 ms | 62.60 ms |
57732e8 | 435.66 ms | 510.50 ms | 74.84 ms |
a59fca2 | 560.08 ms | 658.80 ms | 98.71 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
a0f7731 | 1.70 MiB | 2.29 MiB | 599.77 KiB |
41e496a | 1.70 MiB | 2.29 MiB | 599.77 KiB |
ca82680 | 1.70 MiB | 2.29 MiB | 599.31 KiB |
2f49b9c | 1.70 MiB | 2.29 MiB | 599.31 KiB |
57732e8 | 1.70 MiB | 2.29 MiB | 599.77 KiB |
a59fca2 | 1.70 MiB | 2.29 MiB | 599.77 KiB |
This is awesome thank you! Really great for how Insights shows this data, too! Would be great to also align to how the JavaScript SDK records the connection timings:
That way, these measurements will show up with a nicer UI in the trace view. Unsure if this is standardized somewhere, but would love to all SDKs to report these measurements the same way. |
Thanks for bringing this up, definitely good to align! We landed on the key names you see in this PR because that we we kinda reproduce the nested spans we had before (e.g. |
@kahest 🤔 I think this decision is best left to the SDK folks! The important thing to the UI is that the measurements have the same names in every SDK that supports them. If you align to JS that makes the UI work easy (since it's already done). If you decide to not align to JS, you'll need to let us know what the names will be, and we can adjust the UI code, and then update the JS SDK output to match? For what it's worth, right now the UI specifically treats these two measurements as special: We don't do anything special with the other measurements, but we might in the future! e.g., there was some talk of adding more metrics to the Requests Insights module to track connection times. |
@gggritso from what i understand |
@stefanosiano that's correct! |
📜 Description
SentryOkHttpEvent now set data instead of creating child spans
renamed constants to make them nicer in the UI
SentryOkHttpInterceptor now closes the listener call
Before
After
💡 Motivation and Context
Closes #3520
💚 How did you test it?
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps