Closed
Description
Component
OpenTelemetry.Instrumentation.Http
Package Version
Package Name | Version |
---|---|
OpenTelemetry.Instrumentation.Http | 1.8.1 |
OpenTelemetry.Extensions.Hosting | 1.8.1 |
OpenTelemetry.Exporter.OpenTelemetryProtocol | 1.8.1 |
Runtime Version
net8.0, azure functions
Description
When instrumenting httpclient in azure functions and adding baggage the request send by httpclient does not contain the baggage header. Instead the older Correlation-Context is being used.
Steps to Reproduce
- Instrument httpclient with .AddHttpClientInstrumentation
- Add baggage, for instance
Activity.Current?.SetBaggage("foobar2", "fus43gf3g3");
- Do a http call using httpclient
- Notice the correlation-context header contain the baggage values and there is no baggage header
Expected Result
baggage header is used instead of the correlation-context header
Actual Result
correlation-context header is used
Additional Context
No response