File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
detectors/node/opentelemetry-resource-detector-aws/src Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const ATTR_AWS_LOG_STREAM_NAMES = 'aws.log.stream.names';
3535
3636// Cloud attributes
3737export 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 ' ;
3939export const ATTR_CLOUD_PLATFORM = 'cloud.platform' ;
4040export const ATTR_CLOUD_PROVIDER = 'cloud.provider' ;
4141export const ATTR_CLOUD_REGION = 'cloud.region' ;
You can’t perform that action at this time.
0 commit comments