1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-03 22:52:30 +02:00

Fix Traceparent to traceparent (#681)

* Fix Traceparent to traceparent

* Fix unittest Traceparent to traceparent
This commit is contained in:
NiaoGe 2020-04-30 23:55:16 +08:00 committed by GitHub
parent d7b3c3d7e7
commit f865a6c3d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -28,7 +28,7 @@ import (
const (
supportedVersion = 0
maxVersion = 254
traceparentHeader = "Traceparent"
traceparentHeader = "traceparent"
)
// TraceContext propagates SpanContext in W3C TraceContext format.