Under the hood
OTEL metrics exporter now builds its request headers based on which protocol is in use
What
The function that builds headers for the OpenTelemetry (OTEL) metrics exporter now also receives the resolved protocol string as an input, so the headers it produces can vary depending on which protocol is being used to send metrics.
Why
This allows the metrics exporter to send protocol-appropriate headers instead of a single fixed set, which matters for anyone configuring OTEL metrics export with different transport protocols.