I have noticed that headers in OtlpConfiguration or OtlpHttpExporterBase.envVarHeaders do not get added to the request when exporting through OtlpHttpMetricExporter.
What's changed in this PR?
This PR will set custom headers to OtlpHttpTraceExporter requests. I followed the implementation in OtlpHttpTraceExporter.
Background
I have noticed that headers in
OtlpConfiguration
orOtlpHttpExporterBase.envVarHeaders
do not get added to the request when exporting throughOtlpHttpMetricExporter
.What's changed in this PR?
This PR will set custom headers to
OtlpHttpTraceExporter
requests. I followed the implementation inOtlpHttpTraceExporter
.