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

NameRequirement
crate::attribute::HTTP_REQUEST_METHODRequired
crate::attribute::URL_SCHEMERequired
crate::attribute::ERROR_TYPEConditionally required: If request has ended with an error.
crate::attribute::HTTP_RESPONSE_STATUS_CODEConditionally required: If and only if one was received/sent.
crate::attribute::HTTP_ROUTEConditionally required: If and only if it’s available
crate::attribute::NETWORK_PROTOCOL_NAMEConditionally required: If not http and network.protocol.version is set.
crate::attribute::NETWORK_PROTOCOL_VERSIONUnspecified
crate::attribute::SERVER_ADDRESSOpt in
crate::attribute::SERVER_PORTOpt in