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;