File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
sdk-extension/opentelemetry-sdk-extension-aws
src/opentelemetry/sdk/extension/aws/resource Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def _get_logs_resource(metadata_container):
135135
136136 if not logs_region :
137137 aws_region_match = re .match (
138- r' arn:aws:ecs:([^:]+):.*' , container_arn
138+ r" arn:aws:ecs:([^:]+):.*" , container_arn
139139 )
140140 if aws_region_match :
141141 logs_region = aws_region_match .group (1 )
@@ -147,7 +147,7 @@ def _get_logs_resource(metadata_container):
147147 # log-group and log-stream ARNs
148148 aws_account = None
149149 aws_account_match = re .match (
150- r' arn:aws:ecs:[^:]+:([^:]+):.*' , container_arn
150+ r" arn:aws:ecs:[^:]+:([^:]+):.*" , container_arn
151151 )
152152 if aws_account_match :
153153 aws_account = aws_account_match .group (1 )
Original file line number Diff line number Diff line change @@ -221,7 +221,9 @@ def test_simple_create_metadata_v4_launchtype_fargate(
221221 OrderedDict (
222222 {
223223 ** MockEcsResourceAttributes ,
224- ResourceAttributes .AWS_LOG_GROUP_NAMES : ("/ecs/containerlogs" ,),
224+ ResourceAttributes .AWS_LOG_GROUP_NAMES : (
225+ "/ecs/containerlogs" ,
226+ ),
225227 ResourceAttributes .AWS_LOG_GROUP_ARNS : (
226228 "arn:aws:logs:us-west-2:111122223333:log-group:/ecs/containerlogs" ,
227229 ),
You can’t perform that action at this time.
0 commit comments