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 66
77import requests
88from botocore import session
9- from botocore .auth import SigV4Auth
9+ from botocore .auth import NoCredentialsError , SigV4Auth
1010from botocore .awsrequest import AWSRequest
1111from grpc import Compression
1212
@@ -61,7 +61,7 @@ def _export(self, serialized_data: bytes):
6161 signer .add_auth (request )
6262 self ._session .headers .update (dict (request .headers ))
6363
64- except ( BotoCoreError , ClientError , ValueError ) as signing_error :
64+ except NoCredentialsError as signing_error :
6565 _logger .error (f"Failed to sign request: { signing_error } " )
6666
6767 else :
@@ -74,7 +74,7 @@ def _validate_exporter_endpoint(endpoint: str) -> Optional[str]:
7474 if not endpoint :
7575 return None
7676
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 )
7878
7979 if match :
8080 region = match .group (1 )
You can’t perform that action at this time.
0 commit comments