Skip to content

Commit 28ea34e

Browse files
authored
request_id (#1)
1 parent b35c140 commit 28ea34e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ctxtrace.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func extractMetadataToContext(ctx context.Context) context.Context {
107107

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

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

0 commit comments

Comments
 (0)