Flush logs if client/hub/sdk is closed#3335
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3335 +/- ##
==========================================
+ Coverage 88.33% 88.47% +0.13%
==========================================
Files 291 291
Lines 9914 9917 +3
==========================================
+ Hits 8758 8774 +16
+ Misses 1156 1143 -13 ☔ View full report in Codecov by Sentry. |
Contributor
Android Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 426fbfd | 368.10 ms | 353.23 ms | -14.87 ms |
| 6ad8fc4 | 489.92 ms | 484.96 ms | -4.96 ms |
| 3615e19 | 468.38 ms | 504.71 ms | 36.33 ms |
| 6e7d494 | 397.35 ms | 378.91 ms | -18.43 ms |
| c26ed0a | 465.52 ms | 476.38 ms | 10.86 ms |
| 0fb45d0 | 482.79 ms | 554.02 ms | 71.23 ms |
| 944b773 | 470.54 ms | 480.18 ms | 9.64 ms |
| 2cb90b9 | 479.38 ms | 552.69 ms | 73.31 ms |
| 75284dc | 512.39 ms | 530.87 ms | 18.48 ms |
| 5a95d04 | 378.92 ms | 364.33 ms | -14.59 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 426fbfd | 13.93 MiB | 15.06 MiB | 1.13 MiB |
| 6ad8fc4 | 13.93 MiB | 15.06 MiB | 1.13 MiB |
| 3615e19 | 6.54 MiB | 7.70 MiB | 1.16 MiB |
| 6e7d494 | 13.93 MiB | 15.06 MiB | 1.13 MiB |
| c26ed0a | 13.93 MiB | 14.93 MiB | 1.00 MiB |
| 0fb45d0 | 6.54 MiB | 7.70 MiB | 1.17 MiB |
| 944b773 | 13.93 MiB | 15.00 MiB | 1.06 MiB |
| 2cb90b9 | 6.54 MiB | 7.70 MiB | 1.17 MiB |
| 75284dc | 13.93 MiB | 14.93 MiB | 1.00 MiB |
| 5a95d04 | 13.93 MiB | 15.06 MiB | 1.13 MiB |
Previous results on branch: enha/enhance-logs-batch-processor
Startup times
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| fad6346 | 427.73 ms | 441.52 ms | 13.79 ms |
| fb081d3 | 408.82 ms | 396.57 ms | -12.25 ms |
| 41ef6c5 | 392.28 ms | 385.16 ms | -7.12 ms |
| ad80bba | 435.69 ms | 439.18 ms | 3.49 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| fad6346 | 13.93 MiB | 15.06 MiB | 1.13 MiB |
| fb081d3 | 13.93 MiB | 15.06 MiB | 1.13 MiB |
| 41ef6c5 | 13.93 MiB | 15.18 MiB | 1.25 MiB |
| ad80bba | 13.93 MiB | 15.06 MiB | 1.13 MiB |
Contributor
iOS Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| e1ab497 | 1260.92 ms | 1260.22 ms | -0.69 ms |
| f761369 | 1261.69 ms | 1277.82 ms | 16.12 ms |
| 819c1e7 | 1250.59 ms | 1249.08 ms | -1.51 ms |
| 393f8ec | 1256.45 ms | 1259.60 ms | 3.16 ms |
| e04b24b | 1230.22 ms | 1233.90 ms | 3.67 ms |
| de377fd | 1252.28 ms | 1254.76 ms | 2.48 ms |
| ad121c0 | 1275.04 ms | 1280.59 ms | 5.55 ms |
| 2b5e090 | 1257.04 ms | 1258.07 ms | 1.02 ms |
| 0fb3800 | 1256.60 ms | 1266.28 ms | 9.68 ms |
| aeb02f2 | 1244.29 ms | 1256.55 ms | 12.26 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| e1ab497 | 5.53 MiB | 6.01 MiB | 487.96 KiB |
| f761369 | 7.86 MiB | 9.44 MiB | 1.58 MiB |
| 819c1e7 | 5.53 MiB | 6.00 MiB | 479.96 KiB |
| 393f8ec | 5.53 MiB | 6.01 MiB | 488.10 KiB |
| e04b24b | 5.53 MiB | 6.00 MiB | 480.00 KiB |
| de377fd | 20.71 MiB | 22.43 MiB | 1.73 MiB |
| ad121c0 | 5.53 MiB | 6.01 MiB | 488.11 KiB |
| 2b5e090 | 5.53 MiB | 6.00 MiB | 485.10 KiB |
| 0fb3800 | 7.86 MiB | 9.44 MiB | 1.58 MiB |
| aeb02f2 | 7.86 MiB | 9.44 MiB | 1.58 MiB |
Previous results on branch: enha/enhance-logs-batch-processor
Startup times
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| ad80bba | 1252.87 ms | 1249.65 ms | -3.21 ms |
| fad6346 | 1249.65 ms | 1246.67 ms | -2.98 ms |
| fb081d3 | 1267.15 ms | 1261.11 ms | -6.04 ms |
| 41ef6c5 | 1239.24 ms | 1250.86 ms | 11.61 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| ad80bba | 5.53 MiB | 6.01 MiB | 488.24 KiB |
| fad6346 | 5.53 MiB | 6.01 MiB | 488.25 KiB |
| fb081d3 | 5.53 MiB | 6.01 MiB | 488.25 KiB |
| 41ef6c5 | 5.53 MiB | 6.02 MiB | 502.19 KiB |
buenaflor
reviewed
Nov 13, 2025
…try/sentry-dart into enha/enhance-logs-batch-processor
denrase
enabled auto-merge (squash)
November 17, 2025 10:39
buenaflor
approved these changes
Nov 17, 2025
|
|
||
| - Refactor `captureReplay` and `setReplayConfig` to use FFI/JNI ([#3318](https://github.com/getsentry/sentry-dart/pull/3318)) | ||
| - Refactor `init` to use FFI/JNI ([#3324](https://github.com/getsentry/sentry-dart/pull/3324)) | ||
| - Flush logs if client/hub/sdk is closed ([#3335](https://github.com/getsentry/sentry-dart/pull/3335)) |
Contributor
There was a problem hiding this comment.
I did a new release, pls update the changelog
Contributor
There was a problem hiding this comment.
Oops didn't see it's automatic merged
Collaborator
Author
There was a problem hiding this comment.
oh sorry, enabled auto-merge when all criteria is met.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📜 Description
Other mentions from the docs (app goes to background or is closed) are already handled by the widget observer.
💡 Motivation and Context
Closes #3306
💚 How did you test it?
Unit tests
📝 Checklist
sendDefaultPiiis enabled