-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Add http fields to span.data
#1497
Conversation
Android Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
8cb6557 | 321.20 ms | 370.46 ms | 49.26 ms |
e893df5 | 310.60 ms | 380.58 ms | 69.98 ms |
af2d175 | 279.08 ms | 312.37 ms | 33.29 ms |
a1a1545 | 295.21 ms | 351.16 ms | 55.95 ms |
ef31c7f | 311.39 ms | 359.33 ms | 47.94 ms |
8a7f528 | 290.27 ms | 341.80 ms | 51.53 ms |
559d28f | 302.35 ms | 339.53 ms | 37.18 ms |
6d7a391 | 331.94 ms | 367.04 ms | 35.10 ms |
2d3b03d | 309.53 ms | 353.40 ms | 43.87 ms |
fcd1ee4 | 298.96 ms | 376.04 ms | 77.09 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
8cb6557 | 6.06 MiB | 7.03 MiB | 997.01 KiB |
e893df5 | 6.06 MiB | 7.09 MiB | 1.03 MiB |
af2d175 | 5.94 MiB | 6.92 MiB | 1001.83 KiB |
a1a1545 | 5.94 MiB | 6.96 MiB | 1.02 MiB |
ef31c7f | 6.06 MiB | 7.09 MiB | 1.03 MiB |
8a7f528 | 6.06 MiB | 7.03 MiB | 989.36 KiB |
559d28f | 5.94 MiB | 6.92 MiB | 1001.70 KiB |
6d7a391 | 5.94 MiB | 6.95 MiB | 1.01 MiB |
2d3b03d | 6.06 MiB | 7.09 MiB | 1.03 MiB |
fcd1ee4 | 6.16 MiB | 7.13 MiB | 1000.85 KiB |
Previous results on branch: enha/span-data-http-status-code
Startup times
Revision | Plain | With Sentry | Diff |
---|---|---|---|
7d62110 | 303.92 ms | 359.98 ms | 56.06 ms |
bf8d7c8 | 298.63 ms | 361.86 ms | 63.23 ms |
a66adfa | 304.40 ms | 385.78 ms | 81.38 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
7d62110 | 6.16 MiB | 7.13 MiB | 1000.80 KiB |
bf8d7c8 | 6.16 MiB | 7.13 MiB | 1000.85 KiB |
a66adfa | 6.16 MiB | 7.13 MiB | 1000.85 KiB |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1497 +/- ##
==========================================
+ Coverage 90.73% 90.88% +0.14%
==========================================
Files 61 61
Lines 2030 2030
==========================================
+ Hits 1842 1845 +3
+ Misses 188 185 -3
☔ View full report in Codecov by Sentry. |
iOS Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
69670c9 | 1269.18 ms | 1288.69 ms | 19.51 ms |
f96ca24 | 1264.39 ms | 1287.98 ms | 23.59 ms |
3a69405 | 1292.84 ms | 1303.96 ms | 11.12 ms |
dd1f7d2 | 1263.16 ms | 1275.15 ms | 11.99 ms |
8cb6557 | 1265.14 ms | 1266.08 ms | 0.94 ms |
5aab4c5 | 1247.08 ms | 1271.17 ms | 24.09 ms |
457a85b | 1275.17 ms | 1285.51 ms | 10.34 ms |
b49bf00 | 1248.00 ms | 1260.35 ms | 12.35 ms |
613760b | 1263.10 ms | 1277.27 ms | 14.16 ms |
e2d89fc | 1251.80 ms | 1261.92 ms | 10.11 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
69670c9 | 8.10 MiB | 9.08 MiB | 1004.49 KiB |
f96ca24 | 8.10 MiB | 9.08 MiB | 1004.36 KiB |
3a69405 | 8.15 MiB | 9.15 MiB | 1018.56 KiB |
dd1f7d2 | 8.10 MiB | 9.16 MiB | 1.07 MiB |
8cb6557 | 8.10 MiB | 9.18 MiB | 1.08 MiB |
5aab4c5 | 8.10 MiB | 9.16 MiB | 1.07 MiB |
457a85b | 8.09 MiB | 9.07 MiB | 1000.88 KiB |
b49bf00 | 8.10 MiB | 9.08 MiB | 1004.36 KiB |
613760b | 8.15 MiB | 9.13 MiB | 1000.46 KiB |
e2d89fc | 8.10 MiB | 9.16 MiB | 1.06 MiB |
@denrase missing for |
Breadcrumbs sentry-javaBreadcrumbs set the following
Those are not documented as far as I could tell: https://develop.sentry.dev/sdk/event-payloads/breadcrumbs/ On Code (sentry-java)SentryOkHttpInterceptorrequest.body?.contentLength().ifHasValidLength {
breadcrumb.setData("http.request_content_length", it)
} it.body?.contentLength().ifHasValidLength { responseBodySize ->
breadcrumb.setData("http.response_content_length", responseBodySize)
} SentryOkHttpEventfun setRequestBodySize(byteCount: Long) {
if (byteCount > -1) {
breadcrumb.setData("request_content_length", byteCount)
callRootSpan?.setData("http.request_content_length", byteCount)
}
} fun setResponseBodySize(byteCount: Long) {
if (byteCount > -1) {
breadcrumb.setData("response_content_length", byteCount)
callRootSpan?.setData("http.response_content_length", byteCount)
}
} SentryApollo3HttpInterceptorrequest.body?.contentLength.ifHasValidLength { contentLength ->
breadcrumb.setData("request_body_size", contentLength)
}
httpResponse.headersContentLength().ifHasValidLength { contentLength ->
breadcrumb.setData("response_body_size", contentLength)
} SentryApolloInterceptorhttpRequest.body()?.contentLength().ifHasValidLength { contentLength ->
breadcrumb.setData("request_body_size", contentLength)
}
httpResponse.body()?.contentLength().ifHasValidLength { contentLength ->
breadcrumb.setData("response_body_size", contentLength)
} |
http.response.status_code
to span.data
span.data
@denrase the issue is only about |
@marandaneto Cool. The we can see this as reference if we do need to change/add something there and we end up needing to do similar things as |
📜 Description
http.response.status_code
tospan.data
http.response_content_length
tospan.data
💡 Motivation and Context
Closes #1473
💚 How did you test it?
📝 Checklist
sendDefaultPii
is enabled