Skip to content

Commit f3d22cd

Browse files
authored
Add cloud.platform attribute to resource attributes in lambda (#561)
*Description of changes:* Same as: aws-observability/aws-otel-js-instrumentation#308 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 1bee53d commit f3d22cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambda-layer/src/otel-instrument

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ if [ -z "${OTEL_SERVICE_NAME}" ]; then
9292
fi
9393

9494

95-
export 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";
95+
export LAMBDA_RESOURCE_ATTRIBUTES="cloud.region=$AWS_REGION,cloud.platform=aws_lambda,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";
9696

9797
if [ -z ${OTEL_PROPAGATORS} ]; then
9898
export OTEL_PROPAGATORS="baggage,xray,tracecontext"

0 commit comments

Comments
 (0)