diff --git a/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs b/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs index 30808f642d5..cfeb5387c93 100644 --- a/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs +++ b/src/OpenTelemetry.Api/Context/Propagation/BaggagePropagator.cs @@ -28,7 +28,7 @@ namespace OpenTelemetry.Context.Propagation /// public class BaggagePropagator : TextMapPropagator { - internal const string BaggageHeaderName = "Baggage"; + internal const string BaggageHeaderName = "baggage"; private const int MaxBaggageLength = 8192; private const int MaxBaggageItems = 180; diff --git a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.netcore31.cs b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.netcore31.cs index 47c74259116..317fcb24f55 100644 --- a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.netcore31.cs +++ b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.netcore31.cs @@ -392,7 +392,7 @@ public async Task HttpClientInstrumentationContextPropagation() Assert.True(request.Headers.TryGetValues("traceparent", out var traceparents)); Assert.True(request.Headers.TryGetValues("tracestate", out var tracestates)); - Assert.True(request.Headers.TryGetValues("Baggage", out var baggages)); + Assert.True(request.Headers.TryGetValues("baggage", out var baggages)); Assert.Single(traceparents); Assert.Single(tracestates); Assert.Single(baggages); diff --git a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestActivitySourceTests.netfx.cs b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestActivitySourceTests.netfx.cs index f6a944a63af..8f42f6b59c9 100644 --- a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestActivitySourceTests.netfx.cs +++ b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpWebRequestActivitySourceTests.netfx.cs @@ -816,7 +816,7 @@ private static void ActivityEnrichment(Activity activity, string method, object private static void ValidateBaggage(HttpWebRequest request) { - string[] baggage = request.Headers["Baggage"].Split(','); + string[] baggage = request.Headers["baggage"].Split(','); Assert.Equal(3, baggage.Length); Assert.Contains("key=value", baggage);