Converts incoming HTTP request or response headers to OpenTelemetry span attributes following semantic conventions.
Header names are converted to the format: http.<request|response>.header.
where is the header name in lowercase with dashes converted to underscores.
Parameters
headers: Record<string,string|string[]|undefined>
OptionalsendDefaultPii: boolean
Optionallifecycle: "request"|"response"
The lifecycle of the headers, either 'request' or 'response'
Converts incoming HTTP request or response headers to OpenTelemetry span attributes following semantic conventions. Header names are converted to the format: http.<request|response>.header.
where is the header name in lowercase with dashes converted to underscores.