Skip to content

Integrate OpenTelemetry metrics for queue and reconciliation tracking#56

Merged
matteogastaldello merged 4 commits into
mainfrom
otel-metrics-integration
Apr 20, 2026
Merged

Integrate OpenTelemetry metrics for queue and reconciliation tracking#56
matteogastaldello merged 4 commits into
mainfrom
otel-metrics-integration

Conversation

@matteogastaldello

Copy link
Copy Markdown
Contributor
  • Added telemetry metrics to monitor queue depth, wait duration, and work duration.
  • Implemented metrics for reconciliation success, failure, and requeue counts.
  • Introduced InstrumentedQueue to wrap the priority queue and record metrics.
  • Enhanced controller worker to track processing durations and reconcile metrics.
  • Created a new telemetry package with metrics setup and recording functionality.
  • Added tests for metrics setup and validation of recorded data.

…cking

- Added telemetry metrics to monitor queue depth, wait duration, and work duration.
- Implemented metrics for reconciliation success, failure, and requeue counts.
- Introduced InstrumentedQueue to wrap the priority queue and record metrics.
- Enhanced controller worker to track processing durations and reconcile metrics.
- Created a new telemetry package with metrics setup and recording functionality.
- Added tests for metrics setup and validation of recorded data.
@codecov

codecov Bot commented Apr 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 23.20000% with 288 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/telemetry/metrics.go 31.40% 104 Missing and 62 partials ⚠️
pkg/controller/queue_instrumentation.go 0.00% 82 Missing ⚠️
pkg/controller/worker.go 21.27% 29 Missing and 8 partials ⚠️
pkg/controller/builder/options.go 0.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@matteogastaldello matteogastaldello merged commit d1e94cb into main Apr 20, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant