From cc6640554568f8ab3a4432f6c96ab4c96ebf47fe Mon Sep 17 00:00:00 2001 From: Arun Annamalai Date: Fri, 24 Jan 2025 15:05:50 -0800 Subject: [PATCH] Include documentation regarding xray-lambda propagator --- java/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/java/README.md b/java/README.md index ebcdcd9b72..add77a13bd 100644 --- a/java/README.md +++ b/java/README.md @@ -59,6 +59,19 @@ For any other library, such as OkHttp, you will need to include the correspondin from the [instrumentation project](https://github.com/open-telemetry/opentelemetry-java-instrumentation) and modify your code to initialize it in your function. +### Configuring Context Propagators + +#### If you emit your traces to AWS X-Ray (instead of a third-party service) and have enabled X-Ray Active Tracing +Please use the following environment variable for your lambda: +`OTEL_PROPAGATORS=tracecontext,baggage,xray-lambda` + +#### If you emit your traces to another system besides AWS X-Ray (Default Setting) +Please use the following environment variable for your lambda: +`OTEL_PROPAGATORS=tracecontext,baggage,xray` + + +For more information please read: https://opentelemetry.io/docs/specs/semconv/faas/aws-lambda + ## Building To build the Java Agent layer, run