opentelemetry_semantic_conventions::metric

Constant HTTP_CLIENT_RESPONSE_BODY_SIZE

Source
pub const HTTP_CLIENT_RESPONSE_BODY_SIZE: &str = "http.client.response.body.size";
Expand description

§Description

Size of HTTP client response bodies.

§Notes

The size of the response payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the Content-Length header. For requests using transport encoding, this should be the compressed size

§Metadata

Instrument:histogram
Unit:By
Status:Experimental

§Attributes

NameRequirement
crate::attribute::ERROR_TYPEConditionally_required: If request has ended with an error.
crate::attribute::HTTP_REQUEST_METHODRequired
crate::attribute::HTTP_RESPONSE_STATUS_CODEConditionally_required: If and only if one was received/sent.
crate::attribute::NETWORK_PROTOCOL_NAMEConditionally_required: If not http and network.protocol.version is set.
crate::attribute::NETWORK_PROTOCOL_VERSIONRecommended
crate::attribute::SERVER_ADDRESSRequired
crate::attribute::SERVER_PORTRequired
crate::attribute::URL_SCHEMEOpt_in
crate::attribute::URL_TEMPLATEConditionally_required: If available.