Closed vdepatla closed 1 month ago
This issue is stale because it has been open 90 days with no activity. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled
This issue was closed because it has been marked as stale for 30 days with no activity.
Hello Team,
I am using ADOT nodejs layer for my lambda function which receives messages from SQS. attributes section in SQS event looks like below.
"attributes\":{\"ApproximateReceiveCount\":\"1\",\"AWSTraceHeader\":\"Root=1-6be18c9f-da14c537235206057392a4c5;Parent=3f2b6d1e7fb5dfa5;Sampled=1\",\"SentTimestamp\":\"1712067141206\",\"SenderId\":\"AROA3BFWJP323VSCRBO2Z:66a19705db6549f698be35b063883238\",\"ApproximateFirstReceiveTimestamp\":\"1712067141208\"}
However in my lambda shows a different TraceID
@opentelemetry/instrumentation-net 0.32.4\nSpan #0\n Trace ID : 660c1247f12e5bdc1663c58843d53f49\n Parent ID : 793df25914b9005c\n ID : 6c80e6026b5d6226
Do I need additional settings/code on the lambda handler for AWSTraceHeader to be propogated to my lambda function ?
I see there is
eventContextExtractor
here https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-aws-lambda how can I pass this from lambda layer ?