francoposa / tower-otel-http-metrics

OpenTelemetry HTTP Metrics Middleware Layer for Tower-Compatible Servers (Axum, Hyper)
https://docs.rs/tower-otel-http-metrics/latest/tower_otel_http_metrics
MIT License
8 stars 5 forks source link

http server request body size metric #12

Closed hardbyte closed 2 days ago

hardbyte commented 4 days ago

Following from #11, adds the http.server.request.body.size metric.

image

francoposa commented 4 days ago

@hardbyte could you rebase / fix conflicts on this?

Also I forgot to mention this on the previous PR, but while we're adding descriptions to the metrics, let's use the exact ones from the spec "Number of active HTTP server requests." (current code is missing the server part).

hardbyte commented 3 days ago

Rebased and fixed the descriptions.