From 359fee89b708ce7995ee5a282c753e56c411e87c Mon Sep 17 00:00:00 2001 From: Anupam Dalmia Date: Mon, 3 Jan 2022 21:02:33 +0530 Subject: [PATCH] =?UTF-8?q?fix(opentelemetry-resource-detector-aws):=20add?= =?UTF-8?q?=20missing=20attribute=20to=20la=E2=80=A6=20(#810)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/detectors/AwsLambdaDetector.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsLambdaDetector.ts b/detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsLambdaDetector.ts index 10f6f3c3f2..0e38a04a56 100644 --- a/detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsLambdaDetector.ts +++ b/detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsLambdaDetector.ts @@ -21,6 +21,7 @@ import { } from '@opentelemetry/resources'; import { CloudProviderValues, + CloudPlatformValues, SemanticResourceAttributes, } from '@opentelemetry/semantic-conventions'; @@ -43,6 +44,9 @@ export class AwsLambdaDetector implements Detector { [SemanticResourceAttributes.CLOUD_PROVIDER]: String( CloudProviderValues.AWS ), + [SemanticResourceAttributes.CLOUD_PLATFORM]: String( + CloudPlatformValues.AWS_LAMBDA + ), }; if (region) { attributes[SemanticResourceAttributes.CLOUD_REGION] = region;