Skip to content

Commit 8443739

Browse files
committed
Added Todo comment and documentation
1 parent 70d5d23 commit 8443739

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/serverless/src/awslambda.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ export function wrapHandler<TEvent, TResult>(
258258
name: context.functionName,
259259
op: 'awslambda.handler',
260260
...traceparentData,
261-
metadata: { tracestate: tracestateData },
261+
// ToDo check with Katie if this should be here even if undefined
262+
// metadata: { tracestate: tracestateData },
263+
...(tracestateData && { metadata: { tracestate: tracestateData } }),
262264
});
263265

264266
const hub = getCurrentHub();

0 commit comments

Comments
 (0)