Skip to content

Commit d34cfe2

Browse files
committed
enable default instrumentations
1 parent c8bce79 commit d34cfe2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lambda-layer/otel-instrument

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ else
3535
export OTEL_RESOURCE_ATTRIBUTES="$LAMBDA_RESOURCE_ATTRIBUTES,$OTEL_RESOURCE_ATTRIBUTES";
3636
fi
3737

38+
# Enable default instrumentations
39+
export OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED=${OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED:-"false"}
40+
export OTEL_INSTRUMENTATION_AWS_LAMBDA_ENABLED=${OTEL_INSTRUMENTATION_AWS_LAMBDA_ENABLED:-"true"}
41+
export OTEL_INSTRUMENTATION_AWS_SDK_ENABLED=${OTEL_INSTRUMENTATION_AWS_SDK_ENABLED:-"true"}
42+
export OTEL_INSTRUMENTATION_APACHE_HTTPCLIENT_ENABLED=${OTEL_INSTRUMENTATION_APACHE_HTTPCLIENT_ENABLED:-"true"}
43+
export OTEL_INSTRUMENTATION_JAVA_HTTP_CLIENT_ENABLED=${OTEL_INSTRUMENTATION_JAVA_HTTP_CLIENT_ENABLED:-"true"}
44+
export OTEL_INSTRUMENTATION_NETTY_ENABLED=${OTEL_INSTRUMENTATION_NETTY_ENABLED:-"true"}
45+
3846
ARGS=("$@")
3947
EXTRA_ARGS=()
4048

0 commit comments

Comments
 (0)