Skip to content

Comments

feat(metrics): Add http.route label to OTel metrics and filter internal/infra routes#373

Merged
ppcano merged 1 commit intomainfrom
pepe/enhance-http-metrics
Jan 15, 2026
Merged

feat(metrics): Add http.route label to OTel metrics and filter internal/infra routes#373
ppcano merged 1 commit intomainfrom
pepe/enhance-http-metrics

Conversation

@ppcano
Copy link
Collaborator

@ppcano ppcano commented Jan 15, 2026

This PR improves HTTP metrics observability by adding route-level granularity to OTel metrics and excluding noisy infrastructure endpoints from Prometheus metrics.

Changes

  • Added OTelRouteLabeler middleware that injects http.route label into http_server_request_duration_seconds OTEL metrics
  • Renamed PrometheusMiddleware for clarity
  • Route filtering: Added isInternalRoute() to exclude /metrics, /ready, /healthz, /debug/pprof/* from quickpizza_server_http_requests_* metrics

@ppcano ppcano requested a review from a team as a code owner January 15, 2026 08:09
@ppcano ppcano merged commit ad040ee into main Jan 15, 2026
14 checks passed
@ppcano ppcano deleted the pepe/enhance-http-metrics branch January 15, 2026 08:15
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