From f865a6c3d46f9f62b334313dc3ebcda847a022ac Mon Sep 17 00:00:00 2001 From: NiaoGe Date: Thu, 30 Apr 2020 23:55:16 +0800 Subject: [PATCH] Fix Traceparent to traceparent (#681) * Fix Traceparent to traceparent * Fix unittest Traceparent to traceparent --- api/trace/testtrace/trace_context_propagator_test.go | 2 +- api/trace/trace_context_propagator.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/trace/testtrace/trace_context_propagator_test.go b/api/trace/testtrace/trace_context_propagator_test.go index d7096e39f..2487dcaec 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) diff --git a/api/trace/trace_context_propagator.go b/api/trace/trace_context_propagator.go index 2a464d3e0..ab54ffbf0 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.