File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
aws-opentelemetry-distro/src/amazon/opentelemetry/distro Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import requests
8
8
from botocore import session
9
- from botocore .auth import SigV4Auth
9
+ from botocore .auth import NoCredentialsError , SigV4Auth
10
10
from botocore .awsrequest import AWSRequest
11
11
from grpc import Compression
12
12
@@ -61,7 +61,7 @@ def _export(self, serialized_data: bytes):
61
61
signer .add_auth (request )
62
62
self ._session .headers .update (dict (request .headers ))
63
63
64
- except ( BotoCoreError , ClientError , ValueError ) as signing_error :
64
+ except NoCredentialsError as signing_error :
65
65
_logger .error (f"Failed to sign request: { signing_error } " )
66
66
67
67
else :
@@ -74,7 +74,7 @@ def _validate_exporter_endpoint(endpoint: str) -> Optional[str]:
74
74
if not endpoint :
75
75
return None
76
76
77
- match = re .search (f "{ AWS_SERVICE } \.([a-z0-9-]+)\.amazonaws\.com" , endpoint )
77
+ match = re .search (rf "{ AWS_SERVICE } \.([a-z0-9-]+)\.amazonaws\.com" , endpoint )
78
78
79
79
if match :
80
80
region = match .group (1 )
You can’t perform that action at this time.
0 commit comments