Skip to content

Commit 359fee8

Browse files
fix(opentelemetry-resource-detector-aws): add missing attribute to la… (open-telemetry#810)
1 parent b5a648f commit 359fee8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

detectors/node/opentelemetry-resource-detector-aws/src/detectors/AwsLambdaDetector.ts

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
} from '@opentelemetry/resources';
2222
import {
2323
CloudProviderValues,
24+
CloudPlatformValues,
2425
SemanticResourceAttributes,
2526
} from '@opentelemetry/semantic-conventions';
2627

@@ -43,6 +44,9 @@ export class AwsLambdaDetector implements Detector {
4344
[SemanticResourceAttributes.CLOUD_PROVIDER]: String(
4445
CloudProviderValues.AWS
4546
),
47+
[SemanticResourceAttributes.CLOUD_PLATFORM]: String(
48+
CloudPlatformValues.AWS_LAMBDA
49+
),
4650
};
4751
if (region) {
4852
attributes[SemanticResourceAttributes.CLOUD_REGION] = region;

0 commit comments

Comments
 (0)