Skip to content

Commit 1953f78

Browse files
authored
Update otel-instrument
1 parent e05f2ca commit 1953f78

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lambda-layer/packages/layer/scripts/otel-instrument

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,14 @@ if [[ -z "$OTEL_PROPAGATORS" ]]; then
7171
export OTEL_PROPAGATORS="baggage,xray,tracecontext"
7272
fi
7373

74-
# - Enable emf exporter by default
75-
if [ -z "${OTEL_METRICS_EXPORTER}" ]; then
76-
export OTEL_METRICS_EXPORTER="awsemf";
77-
fi
78-
7974
# - Set Application Signals configuration
8075
if [ -z "${OTEL_AWS_APPLICATION_SIGNALS_ENABLED}" ]; then
8176
export OTEL_AWS_APPLICATION_SIGNALS_ENABLED="true";
8277
fi
8378

79+
# - Enable emf exporter by default
8480
if [ -z "${OTEL_METRICS_EXPORTER}" ]; then
85-
export OTEL_METRICS_EXPORTER="none";
81+
export OTEL_METRICS_EXPORTER="awsemf";
8682
fi
8783

8884
# - Append Lambda Resource Attributes to OTel Resource Attribute List

0 commit comments

Comments
 (0)