Skip to content

Commit 56dbda7

Browse files
committed
use OTEL Propagators in nodejs script
1 parent 85209bc commit 56dbda7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nodejs/scripts/otel-handler

+4
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22

33
export NODE_OPTIONS="--require /opt/adot-extension.js ${NODE_OPTIONS}"
44

5+
if [[ -z "$OTEL_PROPAGATORS" ]]; then
6+
export OTEL_PROPAGATORS="tracecontext,baggage,xray-lambda"
7+
fi
8+
59
source /opt/otel-handler-upstream

0 commit comments

Comments
 (0)