Skip to content

Commit e39088c

Browse files
committed
add otel app signals dimensions env variable
1 parent dca0dd5 commit e39088c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lambda-layer/otel-instrument

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ export OTEL_LOGS_EXPORTER=${OTEL_LOGS_EXPORTER:-"none"}
2727
# Enable Application Signals by default if not specified
2828
export OTEL_AWS_APPLICATION_SIGNALS_ENABLED=${OTEL_AWS_APPLICATION_SIGNALS_ENABLED:-"true"}
2929

30+
if [ -z "${OTEL_METRICS_ADD_APPLICATION_SIGNALS_DIMENSIONS}" ]; then
31+
export OTEL_METRICS_ADD_APPLICATION_SIGNALS_DIMENSIONS="true"
32+
fi
33+
3034
# Append Lambda Resource Attributes to OTel Resource Attribute List
3135
LAMBDA_RESOURCE_ATTRIBUTES="cloud.region=$AWS_REGION,cloud.provider=aws,faas.name=$AWS_LAMBDA_FUNCTION_NAME,faas.version=$AWS_LAMBDA_FUNCTION_VERSION,faas.instance=$AWS_LAMBDA_LOG_STREAM_NAME,aws.log.group.names=$AWS_LAMBDA_LOG_GROUP_NAME";
3236
if [ -z "${OTEL_RESOURCE_ATTRIBUTES}" ]; then

0 commit comments

Comments
 (0)