Expand description
Utilities for getting metric names at runtime, and other helpers.
Constants§
- SECONDS_
DURATION_ BUCKETS - Standard HTTP request duration buckets measured in seconds. The default buckets are tailored to broadly measure the response time of a network service. Most likely, however, you will be required to define buckets customized to your use case.
Functions§
- requests_
duration_ name - The name of the requests duration metric. By default, it’s the same as
AXUM_HTTP_REQUESTS_DURATION_SECONDS, but can be changed via thewith_prefixfunction. - requests_
pending_ name - The name of the requests pending metric. By default, it’s the same as
AXUM_HTTP_REQUESTS_PENDING, but can be changed via thewith_prefixfunction. - requests_
total_ name - The name of the requests total metric. By default, it’s the same as
AXUM_HTTP_REQUESTS_TOTAL, but can be changed via thewith_prefixfunction. - response_
body_ size_ name - The name of the response body size metric. By default, it’s the same as
AXUM_HTTP_RESPONSE_BODY_SIZE, but can be changed via thewith_prefixfunction.