pub const HTTP_SERVER_REQUEST_BODY_SIZE: &str = "http.server.request.body.size";
Expand description
§Description
Size of HTTP server request bodies.
The size of the request 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
Name | Requirement |
---|---|
crate::attribute::HTTP_REQUEST_METHOD | Required |
crate::attribute::URL_SCHEME | Required |
crate::attribute::ERROR_TYPE | Conditionally required : If request has ended with an error. |
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 | Unspecified |
crate::attribute::SERVER_ADDRESS | Opt in |
crate::attribute::SERVER_PORT | Opt in |