-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lambda: trace-context trace continuation for SNS and SQS single event triggers #1831
Comments
Closed
Trace context is being picked up from
|
trentm
added a commit
to elastic/apm-nodejs-http-client
that referenced
this issue
Mar 9, 2022
trentm
added a commit
that referenced
this issue
Mar 10, 2022
… attributes for lambda transaction - If a SNS or SQS single event trigger to an instrumented Lambda function includes message attributes with the name "traceparent" (and "tracestate"), case-insensitive, then those are used to continue the trace. This was already being done for API Gateway event headers. - Also, fix a bug in the capturing of SNS and SQS message attributes as "transaction.context.message.headers". Note that only "String"-type message attributes are captured. Binary-type attributes are base64 encoded. I'm not sure of the value in capturing them. Closes: #1831 Fixes: #2605 Refs: elastic/apm#614
3 tasks
trentm
added a commit
to elastic/apm-nodejs-http-client
that referenced
this issue
Mar 10, 2022
This ensures that the APM agent instrumentation in a Lambda function will not cause a `null` response from the user's handler if the agent cannot talk to the extension. Note that the spec at elastic/apm#613 related to this might yet change. Refs: elastic/apm-agent-nodejs#1831 Refs: elastic/apm#613
trentm
added a commit
that referenced
this issue
Mar 15, 2022
… attributes for lambda transaction (#2606) - If a SNS or SQS single event trigger to an instrumented Lambda function includes message attributes with the name "traceparent" (and "tracestate"), case-insensitive, then those are used to continue the trace. This was already being done for API Gateway event headers. - Also, fix a bug in the capturing of SNS and SQS message attributes as "transaction.context.message.headers". Note that only "String"-type message attributes are captured. Binary-type attributes are base64 encoded. I'm not sure of the value in capturing them. Closes: #1831 Fixes: #2605 Refs: elastic/apm#614
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Once we take care of #1521, we'll want to make sure we add tracestate header parsing to the lambda transaction starting code.
Update (by trentm): I realize belatedly that this issue had been about extending the initial handling of the
traceparent
header in the Lambda instrumentation to also handle thetracestate
header. That was done in #2185. I have morphed this issue to be about handling those trace-context headers for the SNS and SQS trigger cases.Note (by trentm): The commit for elastic/apm-nodejs-http-client#180 reference this issue. It should have referenced #2598 instead.
The text was updated successfully, but these errors were encountered: