pub const HTTP_REQUEST_HEADER: &'static str;Expand description
HTTP request headers, key being the normalized HTTP Header name (lowercase), the value being the header values.
§Notes
Instrumentations SHOULD require an explicit configuration of which headers are to be captured. Including all request headers can be a security risk - explicit configuration helps avoid leaking sensitive information.
The User-Agent header is already captured in the user_agent.original attribute.
Users MAY explicitly configure instrumentations to capture them even though it is not recommended.
The attribute value MUST consist of either multiple header values as an array of strings or a single-item array containing a possibly comma-concatenated string, depending on the way the HTTP library provides access to headers.
Examples:
- A header
Content-Type: application/jsonSHOULD be recorded as thehttp.request.header.content-typeattribute with value["application/json"]. - A header
X-Forwarded-For: 1.2.3.4, 1.2.3.5SHOULD be recorded as thehttp.request.header.x-forwarded-forattribute with value["1.2.3.4", "1.2.3.5"]or["1.2.3.4, 1.2.3.5"]depending on the HTTP library.
§Examples
"[\"application/json\"]""[\"1.2.3.4\", \"1.2.3.5\"]"