Skip to content

Commit 825fe58

Browse files
authored
Add aws.pulse.over.midlina attribute for lambda spans (#266)
*Description of changes:* Add `aws.pulse.over.midlina` for lambda spans when AppSignals is enabled, so server side can use it to determine whether it should generate EMF metrics ``` 2024-09-27T15:19:32.789-07:00 | 'faas.name': 'aws-opentelemetry-distro-nodejs', | 2024/09/27/[$LATEST]af2cea6e28a94c24aa098ed39567d85b -- | -- | --   | 2024-09-27T15:19:32.789-07:00 | 'faas.version': '$LATEST', | 2024/09/27/[$LATEST]af2cea6e28a94c24aa098ed39567d85b   | 2024-09-27T15:19:32.789-07:00 | 'faas.instance': '2024/09/27/[$LATEST]af2cea6e28a94c24aa098ed39567d85b', | 2024/09/27/[$LATEST]af2cea6e28a94c24aa098ed39567d85b   | 2024-09-27T15:19:32.789-07:00 | 'aws.log.group.names': '/aws/lambda/aws-opentelemetry-distro-nodejs', | 2024/09/27/[$LATEST]af2cea6e28a94c24aa098ed39567d85b   | 2024-09-27T15:19:32.789-07:00 | 'aws.pulse.over.midlina': 'true' ``` By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 5fe636c commit 825fe58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lambda-layer/src/otel-instrument

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ if [ "${OTEL_AWS_APPLICATION_SIGNALS_ENABLED}" = "true" ]; then
107107
if [ -z "${OTEL_METRICS_EXPORTER}" ]; then
108108
export OTEL_METRICS_EXPORTER="none";
109109
fi
110+
export LAMBDA_RESOURCE_ATTRIBUTES="aws.pulse.over.midlina=true,${LAMBDA_RESOURCE_ATTRIBUTES}"
110111
fi
111112

112113
# - If Application Signals is disabled

0 commit comments

Comments
 (0)