Skip to content

fix: correct HTTP metrics method labels and latency buckets#19

Merged
ruoka merged 1 commit into
masterfrom
fix/http-metrics-method-and-buckets
Jul 16, 2026
Merged

fix: correct HTTP metrics method labels and latency buckets#19
ruoka merged 1 commit into
masterfrom
fix/http-metrics-method-and-buckets

Conversation

@ruoka

@ruoka ruoka commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Inject x-http-method before handler render; metrics middleware prefers it over assuming GET for URI-only requests
  • Histogram bounds favour sub-50ms latencies; stable decimal le labels
  • Tests for production-shaped POST metrics and cumulative buckets

Test plan

  • ./tools/CB.sh debug test --jsonl=failures --tags='\[net\]'
  • Cumulative histogram + x-http-method scenarios

Made with Cursor

Pass the real method via x-http-method so URI-only handlers are not
recorded as GET. Tighten histogram bounds for sub-50ms servers, keep
stable decimal le labels, and document cumulative bucket semantics.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ruoka
ruoka merged commit 61aab88 into master Jul 16, 2026
4 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