From dba86e756d391eb85f1de9eea1eaf245b11227fd Mon Sep 17 00:00:00 2001 From: tensorchen Date: Thu, 30 Apr 2020 10:39:00 +0800 Subject: [PATCH 1/2] Fix Traceparent to traceparent --- api/trace/trace_context_propagator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/trace/trace_context_propagator.go b/api/trace/trace_context_propagator.go index 2a464d3e005..ab54ffbf0cc 100644 --- a/api/trace/trace_context_propagator.go +++ b/api/trace/trace_context_propagator.go @@ -28,7 +28,7 @@ import ( const ( supportedVersion = 0 maxVersion = 254 - traceparentHeader = "Traceparent" + traceparentHeader = "traceparent" ) // TraceContext propagates SpanContext in W3C TraceContext format. From 895ac33b6f1d7975b2409e8cc456fdedfad365f2 Mon Sep 17 00:00:00 2001 From: tensorchen Date: Thu, 30 Apr 2020 11:33:26 +0800 Subject: [PATCH 2/2] Fix unittest Traceparent to traceparent --- api/trace/testtrace/trace_context_propagator_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/trace/testtrace/trace_context_propagator_test.go b/api/trace/testtrace/trace_context_propagator_test.go index d7096e39f1a..2487dcaec92 100644 --- a/api/trace/testtrace/trace_context_propagator_test.go +++ b/api/trace/testtrace/trace_context_propagator_test.go @@ -288,7 +288,7 @@ func TestInjectTraceContextToHTTPReq(t *testing.T) { func TestTraceContextPropagator_GetAllKeys(t *testing.T) { var propagator trace.TraceContext - want := []string{"Traceparent"} + want := []string{"traceparent"} got := propagator.GetAllKeys() if diff := cmp.Diff(got, want); diff != "" { t.Errorf("GetAllKeys: -got +want %s", diff)