Skip to content
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

In Lambda custom runtimes propagate the tracing header (Lambda-Runtime-Trace-Id) to env. _X_AMZN_TRACE_ID #234

Closed
sdelamo opened this issue Apr 7, 2020 · 2 comments · Fixed by #1087
Assignees

Comments

@sdelamo
Copy link
Contributor

sdelamo commented Apr 7, 2020

One of the steps described in Custom AWS Lambda Runtimes:

Propagate the tracing header – Get the X-Ray tracing header from the Lambda-Runtime-Trace-Id header in the API response. Set the _X_AMZN_TRACE_ID environment variable with the same value for the X-Ray SDK to use.

Setting Environment variables in Java is not supported and I don't think we should use any of the hack workarounds.

Moreover it seems AWS XRAY SDK does not support it either.

aws/aws-xray-sdk-java#102

@OlehTsivanTR
Copy link

Hi, it looks like we can propagate it through the 'setProperty()' now. Could we consider this approach?

aws/aws-xray-sdk-java#252

@sdelamo
Copy link
Contributor Author

sdelamo commented Mar 22, 2021

thanks @OlehTsivanTR I am going to check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants