pub const HTTP_SERVER_REQUEST_DURATION: &str = "http.server.request.duration";
Expand description
§Description
Duration of HTTP server requests
§Metadata
Instrument: | histogram |
Unit: | s |
Status: | Stable |
§Attributes
Name | Requirement |
---|---|
crate::attribute::ERROR_TYPE | Conditionally_required : If request has ended with an error. |
crate::attribute::HTTP_REQUEST_METHOD | Required |
crate::attribute::HTTP_RESPONSE_STATUS_CODE | Conditionally_required : If and only if one was received/sent. |
crate::attribute::HTTP_ROUTE | Conditionally_required : If and only if it’s available |
crate::attribute::NETWORK_PROTOCOL_NAME | Conditionally_required : If not http and network.protocol.version is set. |
crate::attribute::NETWORK_PROTOCOL_VERSION | Recommended |
crate::attribute::SERVER_ADDRESS | Opt_in |
crate::attribute::SERVER_PORT | Opt_in |
crate::attribute::URL_SCHEME | Required |