Skip to content

Commit

Permalink
Rename Baggage Header name to baggage
Browse files Browse the repository at this point in the history
  • Loading branch information
utpilla committed Apr 20, 2021
1 parent ca5a93d commit 07367d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace OpenTelemetry.Context.Propagation
/// </summary>
public class BaggagePropagator : TextMapPropagator
{
internal const string BaggageHeaderName = "Baggage";
internal const string BaggageHeaderName = "baggage";

private const int MaxBaggageLength = 8192;
private const int MaxBaggageItems = 180;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 07367d3

Please sign in to comment.