Skip to content

Commit c60c858

Browse files
Include documentation regarding xray-lambda propagator
1 parent 7f3b53e commit c60c858

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 intend on emitting your traces to AWS X-ray (or have enabled Xray Active Tracing)
65+
Please use the following environment variable for your lambda:
66+
`OTEL_PROPAGATORS=tracecontext,baggage,xray-lambda`
67+
68+
#### If you intend on emitting your traces to AWS X-ray
69+
Please use the following environment variable for your lambda:
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)