We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70d5d23 commit 8443739Copy full SHA for 8443739
packages/serverless/src/awslambda.ts
@@ -258,7 +258,9 @@ export function wrapHandler<TEvent, TResult>(
258
name: context.functionName,
259
op: 'awslambda.handler',
260
...traceparentData,
261
- metadata: { tracestate: tracestateData },
+ // ToDo check with Katie if this should be here even if undefined
262
+ // metadata: { tracestate: tracestateData },
263
+ ...(tracestateData && { metadata: { tracestate: tracestateData } }),
264
});
265
266
const hub = getCurrentHub();
0 commit comments