Skip to content

Commit

Permalink
Include documentation regarding xray-lambda propagator
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-annamalai committed Jan 26, 2025
1 parent 7f3b53e commit cc66405
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc66405

Please sign in to comment.