Skip to content

Add request latency histogram metric#872

Open
mikmatko wants to merge 1 commit into
emmett-framework:masterfrom
mikmatko:latency_metrics
Open

Add request latency histogram metric#872
mikmatko wants to merge 1 commit into
emmett-framework:masterfrom
mikmatko:latency_metrics

Conversation

@mikmatko

@mikmatko mikmatko commented Jul 2, 2026

Copy link
Copy Markdown

Solves #871

Note: AI implemented. I'm not familiar with Rust. I've reviewed the code. I apologize if this is seen as too much AI slop :)

Expose granian_request_duration_seconds, a per-worker Prometheus histogram of application request durations. Static-file requests are excluded.

Adds a LatencyHistogram to WorkerMetrics, a MetricValue::Hist variant for IPC transport, histogram exposition in the aggregator, and integration tests covering exposition, counts, static exclusion and the empty case.

Co-authored-by: GitHub Copilot copilot@github.com

Expose granian_request_duration_seconds, a per-worker Prometheus histogram
of application request durations. Static-file requests are excluded.

Adds a LatencyHistogram to WorkerMetrics, a MetricValue::Hist variant for
IPC transport, histogram exposition in the aggregator, and integration
tests covering exposition, counts, static exclusion and the empty case.

Co-authored-by: GitHub Copilot <copilot@github.com>
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