-
Notifications
You must be signed in to change notification settings - Fork 873
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
read tracing info from system properties #8368
Conversation
.../opentelemetry/instrumentation/awslambdacore/v1_0/internal/AwsXrayEnvSpanLinksExtractor.java
Outdated
Show resolved
Hide resolved
Also pinging @open-telemetry/lambda-extension-approvers Should we also update the spec while we're at it? Quoting @tylerbenson's comment from #7579 :
|
.../opentelemetry/instrumentation/awslambdacore/v1_0/internal/AwsXrayEnvSpanLinksExtractor.java
Show resolved
Hide resolved
@tylerbenson @laurit could you take a look at this please? Alexander has approved this but is not a repo owner. Any thoughts are appreciated. cheers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx!
do you know if there is any official docs on this system property from AWS?
the order of precedency (env var vs system prop) looks different from:
also, do you know why aws/aws-xray-sdk-java#251 is not resolved?
(I would also love to see better documentation about this system property and corresponding environment variable linked somewhere, including the quirky lifecycle of the environment variable that led to this PR.) |
I will chase both the SDK issue closure and updating the public docs |
@trask @tylerbenson now we seem to have broad agreement on the docs over on open-telemetry/semantic-conventions#27 can we approve this one? |
both achieved, docs were updated: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime |
@smirnoal Thanks for the update. I'd like to suggest adding a bit more to the xray tracing header section... specifically I think you should note that this doesn't behave like a normal environment variable because it changes for each function invocation. When I first encountered this it was surprising to me and some systems don't expect that. I assume Java is one example that doesn't handle dynamic environment variables well which is why you needed the system property to take priority. |
Opened to address the following feature request:
#7579