Skip to content

Commit

Permalink
fix(opentelemetry-resource-detector-aws): add missing attribute to la… (
Browse files Browse the repository at this point in the history
  • Loading branch information
anupamdalmia10 authored Jan 3, 2022
1 parent b5a648f commit 359fee8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
} from '@opentelemetry/resources';
import {
CloudProviderValues,
CloudPlatformValues,
SemanticResourceAttributes,
} from '@opentelemetry/semantic-conventions';

Expand All @@ -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;
Expand Down

0 comments on commit 359fee8

Please sign in to comment.