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

Look for X-Ray headers in system property #928

Merged
merged 1 commit into from
Dec 9, 2023

Conversation

bpholt
Copy link
Member

@bpholt bpholt commented Dec 8, 2023

Per the OTel semantic conventions for instrumenting AWS Lambda, and the documentation of AWS Lambda environment variables, instrumentation should first attempt to retrieve the trace context from the system property before falling back to the environment variable as a legacy behavior.

Fixes #927.

Per the OTel semantic conventions for instrumenting AWS Lambda[1],
and the documentation of AWS Lambda environment variables[2],
instrumentation should first attempt to retrieve the trace context
from the system property before falling back to the environment
variable as a legacy behavior.

[1] https://opentelemetry.io/docs/specs/semconv/faas/aws-lambda/#aws-x-ray-environment-span-link
[2] https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime
@bpholt
Copy link
Member Author

bpholt commented Dec 8, 2023

@armanbilge I updated with your suggestions, thank you!

Copy link
Member

@armanbilge armanbilge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this should hold us over :)

@armanbilge armanbilge merged commit 747036f into typelevel:main Dec 9, 2023
12 checks passed
@bpholt bpholt deleted the xray-lambda branch December 9, 2023 02:41
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 this pull request may close these issues.

XRayEnvironment.traceId should prioritize the com.amazonaws.xray.traceHeader system property
2 participants