Skip to content

Commit

Permalink
Fix Traceparent to traceparent (#681)
Browse files Browse the repository at this point in the history
* Fix Traceparent to traceparent

* Fix unittest Traceparent to traceparent
  • Loading branch information
tensorchen authored Apr 30, 2020
1 parent d7b3c3d commit f865a6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/trace/testtrace/trace_context_propagator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion api/trace/trace_context_propagator.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
const (
supportedVersion = 0
maxVersion = 254
traceparentHeader = "Traceparent"
traceparentHeader = "traceparent"
)

// TraceContext propagates SpanContext in W3C TraceContext format.
Expand Down

0 comments on commit f865a6c

Please sign in to comment.