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