Skip to content

Commit

Permalink
request_id (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobSMoller committed Aug 22, 2019
1 parent b35c140 commit 28ea34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctxtrace.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func extractMetadataToContext(ctx context.Context) context.Context {

if mdValue, ok := md[headerRequestID]; ok && len(mdValue) != 0 {
data.RequestID = mdValue[0]
grpc_ctxtags.Extract(ctx).Set("requestid", mdValue[0])
grpc_ctxtags.Extract(ctx).Set("request_id", mdValue[0])
}

return context.WithValue(ctx, traceCtxMarker{}, data)
Expand Down

0 comments on commit 28ea34e

Please sign in to comment.