Skip to content

Commit 68c9b79

Browse files
Include documentation regarding xray-lambda propagator (#1678)
* Include documentation regarding xray-lambda propagator * Update java/README.md Co-authored-by: Tyler Benson <[email protected]> --------- Co-authored-by: Tyler Benson <[email protected]>
1 parent 7f3b53e commit 68c9b79

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

java/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,19 @@ For any other library, such as OkHttp, you will need to include the correspondin
5959
from the [instrumentation project](https://github.com/open-telemetry/opentelemetry-java-instrumentation) and
6060
modify your code to initialize it in your function.
6161

62+
### Configuring Context Propagators
63+
64+
#### If you emit your traces to AWS X-Ray (instead of a third-party service) and have enabled X-Ray Active Tracing
65+
Please use the following environment variable for your lambda:
66+
`OTEL_PROPAGATORS=tracecontext,baggage,xray-lambda`
67+
68+
#### If you emit your traces to another system besides AWS X-Ray (Default Setting)
69+
The following propagators are configured by default, but you can use this environment variable to customize it:
70+
`OTEL_PROPAGATORS=tracecontext,baggage,xray`
71+
72+
73+
For more information please read: https://opentelemetry.io/docs/specs/semconv/faas/aws-lambda
74+
6275
## Building
6376

6477
To build the Java Agent layer, run

0 commit comments

Comments
 (0)