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:
parent
d7b3c3d7e7
commit
f865a6c3d4
@ -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)
|
||||
|
@ -28,7 +28,7 @@ import (
|
||||
const (
|
||||
supportedVersion = 0
|
||||
maxVersion = 254
|
||||
traceparentHeader = "Traceparent"
|
||||
traceparentHeader = "traceparent"
|
||||
)
|
||||
|
||||
// TraceContext propagates SpanContext in W3C TraceContext format.
|
||||
|
Loading…
Reference in New Issue
Block a user