Skip to content

Commit 19e3ab4

Browse files
committed
Add aws.pulse.over.midlina attribute for lambda spans when appsignals is enabled
1 parent 4cdc78f commit 19e3ab4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ if [ -z "${OTEL_AWS_APPLICATION_SIGNALS_ENABLED}" ]; then
2828
export OTEL_AWS_APPLICATION_SIGNALS_ENABLED="true";
2929
fi
3030

31+
if [ "${OTEL_AWS_APPLICATION_SIGNALS_ENABLED}" = "true" ]; then
32+
export LAMBDA_RESOURCE_ATTRIBUTES="aws.pulse.over.midlina=true,${LAMBDA_RESOURCE_ATTRIBUTES}"
33+
fi
34+
3135
if [ -z "${OTEL_METRICS_EXPORTER}" ]; then
3236
export OTEL_METRICS_EXPORTER="none";
3337
fi

0 commit comments

Comments
 (0)