Skip to content

fix: Resolution of the request duration metric adjusted to make it meaningful#2954

Merged
dadrus merged 1 commit intoreleasefrom
fix/request_latency_resolution
Jan 3, 2026
Merged

fix: Resolution of the request duration metric adjusted to make it meaningful#2954
dadrus merged 1 commit intoreleasefrom
fix/request_latency_resolution

Conversation

@dadrus
Copy link
Copy Markdown
Owner

@dadrus dadrus commented Jan 3, 2026

Related issue(s)

none

Checklist

Description

This PR makes the OTEL metric http.server.request.duration (and its Prometheus-exported counterpart http_server_request_duration_seconds) usable again, restoring the effective resolution that existed in v0.11.1-alpha prior to the migration to OpenTelemetry.

The default OTEL histogram configuration uses a lowest bucket boundary of 5 ms, which is far too coarse for heimdall’s request latency characteristics (typically, P99 of requests complete well below 1 ms). That makes all sub-millisecond latencies collapse into a single bucket and renders percentile calculations (P50–P99) meaningless by obscuring latency regressions.


BEGIN_COMMIT_OVERRIDE
fix: Request duration metric resolution adjusted for sub-millisecond latencies (#2954)
END_COMMIT_OVERRIDE

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.16%. Comparing base (738e274) to head (ce566e6).
⚠️ Report is 1 commits behind head on release.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           release    #2954      +/-   ##
===========================================
- Coverage    91.20%   91.16%   -0.04%     
===========================================
  Files          283      283              
  Lines        10705    10725      +20     
===========================================
+ Hits          9763     9777      +14     
- Misses         686      689       +3     
- Partials       256      259       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dadrus dadrus merged commit a8e1cbc into release Jan 3, 2026
29 of 30 checks passed
@dadrus dadrus deleted the fix/request_latency_resolution branch January 3, 2026 23:34
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