Skip to content

Commit ad4c0a0

Browse files
committed
linting fix
1 parent bb591a2 commit ad4c0a0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

aws-opentelemetry-distro/src/amazon/opentelemetry/distro/otlp_sigv4_exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def _export(self, serialized_data: bytes):
6262
self._session.headers.update(dict(request.headers))
6363

6464
except NoCredentialsError as signing_error:
65-
_logger.error(f"Failed to sign request: {signing_error}")
65+
_logger.error("Failed to sign request: %s", signing_error)
6666

6767
else:
6868
_logger.error("Failed to get credentials to export span to OTLP CloudWatch endpoint")

aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test_otlp_sigv4_exporter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def setUp(self):
4040
self.invalid_cw_otlp_tracing_endpoints = [
4141
"https://xray.bad-region-1.amazonaws.com/v1/traces",
4242
"https://xray.us-east-1.amaz.com/v1/traces",
43-
"https://logs.us-east-1.amazonaws.com/v1/logs" "https://test-endpoint123.com/test",
43+
"https://logs.us-east-1.amazonaws.com/v1/logs",
44+
"https://test-endpoint123.com/test",
4445
]
4546

4647
self.expected_auth_header = "AWS4-HMAC-SHA256 Credential=test_key/some_date/us-east-1/xray/aws4_request"

0 commit comments

Comments
 (0)