| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Poll gauges, time gauges, long task timers, and function counters on a configurable interval while forwarding values through the existing Sentry metrics pipeline. Support disabled polling, isolate callback failures, and stop the polling worker when the registry closes. Co-Authored-By: Claude <noreply@anthropic.com>
|
Sorry, something went wrong.
📲 Install BuildsAndroid
|
Sorry, something went wrong.
# Conflicts: # sentry-micrometer/src/main/java/io/sentry/micrometer/SentryMeterRegistry.java
# Conflicts: # sentry-micrometer/src/main/java/io/sentry/micrometer/SentryMeterRegistry.java
Carry active meter removal handling forward and use the shared removal lifecycle for function counters. Co-Authored-By: Claude <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
PR Stack (Micrometer)
📜 Description
Add fixed-rate polling for passive Micrometer meters to SentryMeterRegistry.
The registry polls gauges, time gauges, long-task timers, and function counters every 60 seconds by default. Applications can configure the interval in milliseconds or set it to zero to disable passive polling. Function counters emit positive deltas and reset their baseline when their source value decreases.
Polling resolves the active Sentry scopes at capture time, isolates callback failures between meters, skips non-finite values, and shuts down without blocking when the registry closes.
💡 Motivation and Context
Passive meters expose values through callbacks rather than record-time operations, so they cannot use the immediate forwarding added in the previous stack PR. A single registry-owned polling worker captures those values while continuing to use Sentry's existing metrics batching and transport.
FunctionTimer is intentionally deferred to the next PR because its cumulative count and total-time semantics need separate review.
💚 How did you test it?
Tests cover each passive meter mapping, polling intervals, disabled polling, function-counter baselines and resets, callback isolation, dynamic scope resolution, meter removal, and shutdown.
📝 Checklist
🔮 Next steps
Add separately reviewed FunctionTimer polling semantics in the next stack PR.
#skip-changelog