Skip to content

Commit 9723b4f

Browse files
committed
fix cloud az attribute
1 parent af088df commit 9723b4f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@ export class AwsEcsDetectorSync implements DetectorSync {
166166

167167
const accountId: string = AwsEcsDetectorSync._getAccountFromArn(taskArn);
168168
const region: string = AwsEcsDetectorSync._getRegionFromArn(taskArn);
169-
const availabilityZone: string | undefined =
170-
taskMetadata?.['AvailabilityZone'];
169+
const availabilityZone: string | undefined = taskMetadata?.AvailabilityZone;
171170

172171
const clusterArn = cluster.startsWith('arn:')
173172
? cluster

detectors/node/opentelemetry-resource-detector-aws/src/lib/semconv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const ATTR_AWS_LOG_STREAM_NAMES = 'aws.log.stream.names';
3535

3636
// Cloud attributes
3737
export const ATTR_CLOUD_ACCOUNT_ID = 'cloud.account.id';
38-
export const ATTR_CLOUD_AVAILABILITY_ZONE = 'cloud.availability.zone';
38+
export const ATTR_CLOUD_AVAILABILITY_ZONE = 'cloud.availability_zone';
3939
export const ATTR_CLOUD_PLATFORM = 'cloud.platform';
4040
export const ATTR_CLOUD_PROVIDER = 'cloud.provider';
4141
export const ATTR_CLOUD_REGION = 'cloud.region';

0 commit comments

Comments
 (0)