Converts headers object to OpenTelemetry semantic convention format. Headers are set as individual attributes with the pattern:
According to OTel spec, header values should be arrays when they contain comma-separated values. Single values remain as strings for simpler querying.
Object with header key-value pairs
Either 'http.request.header' or 'http.response.header'
Object with OTel semantic convention attribute names
Converts headers object to OpenTelemetry semantic convention format. Headers are set as individual attributes with the pattern:
According to OTel spec, header values should be arrays when they contain comma-separated values. Single values remain as strings for simpler querying.