Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Use recommended buckets for HTTP request duration helpers - #5980

Open
Y2XNishan wants to merge 2 commits into
open-telemetry:mainfrom
Y2XNishan:fix/4598-http-histogram-boundaries
Open

Y2XNishan wants to merge 2 commits into
open-telemetry:mainfrom
Y2XNishan:fix/4598-http-histogram-boundaries

Conversation

@Y2XNishan

Copy link
Copy Markdown

Description

Fixes #4598.

The HTTP client and server request-duration helpers create histograms in seconds without supplying the recommended bucket boundaries. With SDK defaults, durations such as 4 ms, 60 ms, and 700 ms therefore land in the same bucket.

Both helpers now provide the 14 recommended HTTP duration boundaries as an advisory. The boundaries are configured once in Weaver and emitted through the generation template. Explicit SDK Views continue to override the advisory.

Testing

  • Added an integration regression checking exported boundaries and bucket counts for both helpers. Both subtests failed before the fix and passed afterward.
  • Semantic-conventions and SDK suites passed; the final SDK run had 1,056 passing tests and 249 passing subtests, with one Windows-only skip.
  • Lint, typecheck, precommit, changelog preview, and whitespace checks passed.
  • Two generation runs produced identical output. Only the intended HTTP metrics module changed.
  • Verified API compatibility and explicit View precedence.

Validation used Linux under WSL and Python 3.13.

@Y2XNishan
Y2XNishan requested a review from a team as a code owner November 28, 2026 09:46
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-11-28 10:08 UTC

Review the latest changes.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Should this be with the author? Comment /dashboard route:author to route it back.
  • Anything wrong — including the routing? Report it with what you expected; it helps us improve the dashboard.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

opentelemetry-semantic-conventions: handle explicit buckets for metrics helpers

1 participant