Repository navigation
Commit 59b6d80
fix(core): No longer guard direct usage of
* fix(core): Capture manual telemetry without enable flags
Capture direct Logs and Metrics API calls regardless of their legacy enable
flags while preserving those flags for automatic integrations in v8. Always
create the configured batch processors and keep their workers lazy until the
first accepted item.
Keep automatic Timber forwarding gated and avoid unused Android background
flush submissions.
Fixes #6170
Co-Authored-By: Claude <noreply@anthropic.com>
* changelog
* docs: Clarify manual telemetry changelog guidance
Separate the automatic-integration behavior from manual filtering
instructions. Name the Logs and Metrics before-send APIs and explain
how to drop manually emitted telemetry.
Co-Authored-By: Claude <noreply@anthropic.com>
* docs: Announce telemetry option removal
Clarify that the Logs and Metrics enable options will be removed in the
next major release. Note that logging integrations will receive
individual opt-in flags.
Co-Authored-By: Claude <noreply@anthropic.com>
* docs(android): Mention Timber in Logs manifest example
Clarify that io.sentry.logs.enabled controls automatic logs from both
Logcat and Timber integrations.
Co-Authored-By: Claude <noreply@anthropic.com>
* docs: Mark telemetry ungating as a breaking change
Move the manual Logs and Metrics behavior change into the breaking
changes section so its impact is clear to users.
Co-Authored-By: Claude <noreply@anthropic.com>
* docs(core): Clarify Metrics enable option behavior
Document that the Metrics enable option currently has no effect because
there are no automatic Metrics integrations.
Co-Authored-By: Claude <noreply@anthropic.com>
* docs(core): Explain synchronous processor shutdown
Clarify that restarting an unused Logs or Metrics processor takes the synchronous shutdown path because its executor has no scheduled work.
Co-Authored-By: Claude <noreply@anthropic.com>
* docs: Clarify automatic Logs integration enablement
Document that automatic logging integrations remain gated by the Logs enable option while direct logger calls bypass it.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>Sentry.metrics() and Sentry.logger() with enable flags (#6184)1 parent d0843a2 commit 59b6d80
21 files changed
Lines changed: 224 additions & 59 deletions
File tree
- sentry-android-core/src
- main/java/io/sentry/android/core
- test/java/io/sentry/android/core
- sentry-android-timber/src
- main/java/io/sentry/android/timber
- test/java/io/sentry/android/timber
- sentry-samples/sentry-samples-android/src/main
- sentry
- api
- src
- main/java/io/sentry
- logger
- metrics
- test/java/io/sentry
- logger
- metrics
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
69 | 81 | | |
70 | 82 | | |
71 | 83 | | |
72 | | - | |
| 84 | + | |
73 | 85 | | |
74 | 86 | | |
75 | 87 | | |
| 88 | + | |
76 | 89 | | |
77 | 90 | | |
78 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
68 | 80 | | |
69 | 81 | | |
70 | 82 | | |
71 | | - | |
| 83 | + | |
72 | 84 | | |
73 | 85 | | |
74 | 86 | | |
| 87 | + | |
75 | 88 | | |
76 | 89 | | |
77 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
249 | 253 | | |
250 | 254 | | |
251 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
332 | 336 | | |
333 | 337 | | |
334 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
335 | 350 | | |
336 | 351 | | |
337 | 352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5548 | 5548 | | |
5549 | 5549 | | |
5550 | 5550 | | |
| 5551 | + | |
5551 | 5552 | | |
5552 | 5553 | | |
5553 | 5554 | | |
| |||
5636 | 5637 | | |
5637 | 5638 | | |
5638 | 5639 | | |
| 5640 | + | |
5639 | 5641 | | |
5640 | 5642 | | |
5641 | 5643 | | |
| |||
0 commit comments