Replies: 1 comment 4 replies
-
/cc @brunobat (opentelemetry,tracing), @matejvasek (amazon-lambda), @patriot1burke (amazon-lambda), @radcortez (opentelemetry,tracing) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We're using the
io.quarkus:quarkus-amazon-lambda
extension to build an AWS Lambda. In the lambda if we enable the Active tracing mode we can see traces sent across to XRay with every request.What we can't configure is the span linking function for manual instrumentation, i.e
@WithSpan
. Looks like AWS Lambda sends the tracing header through a system property in Java17: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtimeWe're also using a
provided.al2
runtime as we've built a native Quarkus app and along with the ADOT layer the property is set, i.ecom.amazonaws.xray.traceHeader=Root=1-65ea0523-7ca6bbb929835fc57bd998e4;Parent=d23df4a462562bfe;Sampled=1;Lineage=66fb198a:0
.Is there a way to read that property and pass it down to
io.quarkus:quarkus-opentelemetry
's@WithSpan
and its auto-instrumentation in order to submit the correct span linking context?Beta Was this translation helpful? Give feedback.
All reactions