Skip to content

feat(stackable-telemetry)!: Record HTTP server request duration - #1333

Open
lfrancke wants to merge 11 commits into
telemetry-metricsfrom
telemetry-http-semconv
Open

lfrancke wants to merge 11 commits into
telemetry-metricsfrom
telemetry-http-semconv

Conversation

@lfrancke

@lfrancke lfrancke commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Description

This builds on #1332 to amend the AxumTraceLayer to also record the http.server.request.duration as a metric. It uses the HTTP metric semantic conventions including the bucket sizes. Spans and metrics now reuse the same method, scheme, route and protocol.

Breaking, span output and API:

  • An unknown request method is recorded as _OTHER with the original in http.request.method_original, and the span name starts with HTTP, as the span conventions require. Before this change, arbitrary client-sent methods became span names (not good).
  • url.scheme is the scheme set with with_url_scheme instead of the request URI's scheme, which is empty for the usual origin-form request.
  • network.protocol.version is recorded.

All other span attributes are unchanged.

Definition of Done Checklist

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes

Reviewer

  • Code contains useful comments
  • Code contains useful logging statements
  • Changelog updated

Acceptance

  • Proper release label has been added

@lfrancke
lfrancke added this pull request to stack #1334 November 16, 2026 22:26
@lfrancke
lfrancke force-pushed the telemetry-http-semconv branch from de41e8e to 216152e Compare November 16, 2026 22:28
@lfrancke lfrancke self-assigned this Nov 16, 2026
@lfrancke lfrancke moved this to Development: Waiting for Review in Stackable Engineering Nov 16, 2026
@lfrancke
lfrancke marked this pull request as ready for review November 16, 2026 22:36
@lfrancke
lfrancke force-pushed the telemetry-http-semconv branch from 216152e to a67c828 Compare November 17, 2026 09:20

@NickLarsenNZ NickLarsenNZ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another partial review. I will really try and get onto this on Monday.

I'll mainly try to cover the public API of the types, and whether we are allowing invalid states. The rest would be optional nit-picks (we can easily change private internals).

@lfrancke

Copy link
Copy Markdown
Member Author

This is really and honestly not urgent. But thank you for the review.

@lfrancke lfrancke moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Nov 23, 2026
Comment thread crates/stackable-webhook/src/lib.rs Resolved
@lfrancke

lfrancke commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Ready for review again. I also included the changelog fix here eca93b4 (this PR)

@lfrancke
lfrancke requested a review from NickLarsenNZ December 1, 2026 14:28
@lfrancke
lfrancke enabled stacked auto-merge December 1, 2026 14:31
NickLarsenNZ
NickLarsenNZ previously approved these changes Dec 1, 2026
@lfrancke
lfrancke disabled stacked auto-merge December 1, 2026 14:44

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: Development: In Review

Development

Successfully merging this pull request may close these issues.

2 participants