Skip to content

Commit

Permalink
Correct Xmidt header
Browse files Browse the repository at this point in the history
  • Loading branch information
renaz6 committed Jun 13, 2023
1 parent f7ba5dc commit 8bc6dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func EchoFirstTraceNodeInfo(propagator propagation.TextMapPropagator, isDecodabl
ctx = propagator.Extract(r.Context(), propagation.HeaderCarrier(r.Header))

Check warning on line 82 in middleware.go

View check run for this annotation

Codecov / codecov/patch

middleware.go#L82

Added line #L82 was not covered by tests
if msg, ok := wrpcontext.Get[*wrp.Message](ctx); ok {
traceHeaders = msg.Headers
} else if headers := r.Header.Values("X-midt-Headers"); len(headers) != 0 {
} else if headers := r.Header.Values("X-Xmidt-Headers"); len(headers) != 0 {
traceHeaders = headers

Check warning on line 86 in middleware.go

View check run for this annotation

Codecov / codecov/patch

middleware.go#L85-L86

Added lines #L85 - L86 were not covered by tests
}

Expand Down

0 comments on commit 8bc6dc3

Please sign in to comment.