We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a241d68 + 45c22d5 commit 30d9579Copy full SHA for 30d9579
1 file changed
lambda/invoke_loop.go
@@ -65,7 +65,9 @@ func handleInvoke(invoke *invoke, handler *handlerOptions) error {
65
66
// set the trace id
67
traceID := invoke.headers.Get(headerTraceID)
68
- os.Setenv("_X_AMZN_TRACE_ID", traceID)
+ if lambdacontext.MaxConcurrency() == 1 {
69
+ os.Setenv("_X_AMZN_TRACE_ID", traceID)
70
+ }
71
// nolint:staticcheck
72
ctx = context.WithValue(ctx, "x-amzn-trace-id", traceID)
73
0 commit comments