-
-
Notifications
You must be signed in to change notification settings - Fork 272
Improve SentryLogBatcher
flush logic
#3211
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3211 +/- ##
==========================================
- Coverage 87.86% 87.73% -0.14%
==========================================
Files 289 289
Lines 9901 9932 +31
==========================================
+ Hits 8700 8714 +14
- Misses 1201 1218 +17 ☔ View full report in Codecov by Sentry. |
iOS Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
81f83eb | 1259.53 ms | 1273.39 ms | 13.86 ms |
93b7728 | 1247.23 ms | 1264.87 ms | 17.64 ms |
827bf09 | 1261.86 ms | 1276.41 ms | 14.55 ms |
eca355d | 1238.39 ms | 1266.98 ms | 28.59 ms |
79f6b41 | 1269.33 ms | 1279.71 ms | 10.38 ms |
dbd526b | 1244.78 ms | 1259.02 ms | 14.24 ms |
73dca78 | 1246.65 ms | 1265.42 ms | 18.76 ms |
c26ed0a | 1244.11 ms | 1263.85 ms | 19.75 ms |
cc4e375 | 1253.06 ms | 1263.81 ms | 10.75 ms |
b6c8720 | 1252.65 ms | 1266.61 ms | 13.96 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
81f83eb | 7.86 MiB | 9.44 MiB | 1.58 MiB |
93b7728 | 7.86 MiB | 9.44 MiB | 1.58 MiB |
827bf09 | 7.86 MiB | 9.44 MiB | 1.58 MiB |
eca355d | 7.86 MiB | 9.44 MiB | 1.58 MiB |
79f6b41 | 7.86 MiB | 9.44 MiB | 1.58 MiB |
dbd526b | 7.86 MiB | 9.44 MiB | 1.58 MiB |
73dca78 | 7.86 MiB | 9.44 MiB | 1.58 MiB |
c26ed0a | 5.53 MiB | 5.97 MiB | 453.76 KiB |
cc4e375 | 7.86 MiB | 9.44 MiB | 1.58 MiB |
b6c8720 | 7.86 MiB | 9.44 MiB | 1.58 MiB |
Previous results on branch: enha/update-log-flushing
Startup times
Revision | Plain | With Sentry | Diff |
---|---|---|---|
9ea6204 | 1242.60 ms | 1256.29 ms | 13.69 ms |
b3cdf53 | 1250.39 ms | 1255.48 ms | 5.09 ms |
5008b71 | 1234.47 ms | 1237.60 ms | 3.14 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
9ea6204 | 5.53 MiB | 5.97 MiB | 453.78 KiB |
b3cdf53 | 5.53 MiB | 5.96 MiB | 444.33 KiB |
5008b71 | 5.53 MiB | 5.97 MiB | 453.78 KiB |
Android Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
0929dbf | 462.82 ms | 492.76 ms | 29.94 ms |
ec78888 | 457.94 ms | 519.96 ms | 62.02 ms |
de377fd | 572.35 ms | 589.21 ms | 16.87 ms |
5b9a0da | 446.94 ms | 449.22 ms | 2.28 ms |
765aa8b | 493.51 ms | 531.23 ms | 37.72 ms |
3615e19 | 468.38 ms | 504.71 ms | 36.33 ms |
8825ed8 | 447.65 ms | 456.90 ms | 9.25 ms |
0fb45d0 | 482.79 ms | 554.02 ms | 71.23 ms |
dbd526b | 504.88 ms | 569.02 ms | 64.15 ms |
f761369 | 462.73 ms | 563.80 ms | 101.06 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
0929dbf | 6.54 MiB | 7.70 MiB | 1.17 MiB |
ec78888 | 6.54 MiB | 7.69 MiB | 1.15 MiB |
de377fd | 6.54 MiB | 7.71 MiB | 1.17 MiB |
5b9a0da | 13.93 MiB | 14.93 MiB | 1.00 MiB |
765aa8b | 6.54 MiB | 7.70 MiB | 1.16 MiB |
3615e19 | 6.54 MiB | 7.70 MiB | 1.16 MiB |
8825ed8 | 13.93 MiB | 14.93 MiB | 1.00 MiB |
0fb45d0 | 6.54 MiB | 7.70 MiB | 1.17 MiB |
dbd526b | 6.54 MiB | 7.69 MiB | 1.15 MiB |
f761369 | 6.54 MiB | 7.70 MiB | 1.16 MiB |
Previous results on branch: enha/update-log-flushing
Startup times
Revision | Plain | With Sentry | Diff |
---|---|---|---|
5008b71 | 439.40 ms | 453.87 ms | 14.47 ms |
b3cdf53 | 449.48 ms | 471.04 ms | 21.56 ms |
9ea6204 | 473.30 ms | 473.44 ms | 0.14 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
5008b71 | 13.93 MiB | 14.93 MiB | 1.00 MiB |
b3cdf53 | 13.93 MiB | 14.93 MiB | 1.00 MiB |
9ea6204 | 13.93 MiB | 14.93 MiB | 1.00 MiB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you think of adding an option for configuring this?
@buenaflor Don't think we should add an option to configure here. These are all behaviours/values where we have to follow the spec:
|
we don't have to add a configurable option for it now but let's keep it in mind in case someone has a use case in the future |
📜 Description
https://develop.sentry.dev/sdk/telemetry/spans/batch-processor/
💡 Motivation and Context
Closes https://linear.app/getsentry/issue/MOBILE-1059/dart-flush-structured-logs-if-batch-size-exceeds-1mib
💚 How did you test it?
Unit tests
📝 Checklist
sendDefaultPii
is enabled