Conversation
9 tasks
Copilot
AI
changed the title
[WIP] Add operational metrics for outbox processor
feat: Extend outbox processor with operational metrics (Mar 28, 2026
pulse.outbox.*)
bcb0f84 to
703d26f
Compare
Agent-Logs-Url: https://github.com/dailydevops/pulse/sessions/79f87716-bc5b-4581-8e8e-270a5ff7badc Co-authored-by: samtrion <3283596+samtrion@users.noreply.github.com>
703d26f to
48107c9
Compare
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (66.66%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #155 +/- ##
==========================================
- Coverage 86.12% 85.12% -1.01%
==========================================
Files 42 42
Lines 1312 1385 +73
Branches 123 125 +2
==========================================
+ Hits 1130 1179 +49
- Misses 145 169 +24
Partials 37 37 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
The outbox processor emitted no metrics, creating a blind spot for teams monitoring message delivery health in production.
New Metrics
Five instruments registered on the existing
"NetEvolve.Pulse"meter:pulse.outbox.pendingObservableGauge<long>IOutboxRepositorypulse.outbox.processed.totalCounter<long>pulse.outbox.failed.totalCounter<long>pulse.outbox.deadletter.totalCounter<long>pulse.outbox.processing.durationHistogram<double>Implementation
IOutboxRepository— new default methodGetPendingCountAsync()returning0L; backward-compatible, no existing implementations need changes.OutboxProcessorHostedService— counters/histogram are static fields; the observable gauge is registered per-instance in the constructor, its callback reading a_pendingCountfield updated viaRefreshPendingCountAsyncat the start of each cycle. All metric calls are wrapped in try/catch and log atWarningon failure — metric errors never interrupt message processing.ProcessMessageAsync) and batch (ProcessBatchSendAsync) processing paths increment the appropriate counters.Tests
MeterListenerto verify measurements are recorded.GetPendingCountAsync.🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.