From 18b9a4ac770895f32cf81894b8e9a69af6aacde6 Mon Sep 17 00:00:00 2001 From: Zhonghao Zhao Date: Mon, 12 Feb 2024 20:54:34 -0800 Subject: [PATCH] Apply lint. --- .../distro/test_aws_metric_attribute_generator.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test_aws_metric_attribute_generator.py b/aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test_aws_metric_attribute_generator.py index 3da6d716c..b8e25913e 100644 --- a/aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test_aws_metric_attribute_generator.py +++ b/aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test_aws_metric_attribute_generator.py @@ -388,19 +388,28 @@ def test_remote_attributes_combinations(self): # Validate behaviour of various combinations of DB attributes. # Validate db.operation not exist, but db.statement exist, where SpanAttributes.DB_STATEMENT is valid keys, values = self._mock_attribute( - [SpanAttributes.DB_SYSTEM, SpanAttributes.DB_STATEMENT, SpanAttributes.DB_OPERATION], ["DB system", "SELECT DB statement", None], keys, values + [SpanAttributes.DB_SYSTEM, SpanAttributes.DB_STATEMENT, SpanAttributes.DB_OPERATION], + ["DB system", "SELECT DB statement", None], + keys, + values, ) self._validate_expected_remote_attributes("DB system", "SELECT") # Validate db.operation not exist, but db.statement exist, where SpanAttributes.DB_STATEMENT is invalid keys, values = self._mock_attribute( - [SpanAttributes.DB_SYSTEM, SpanAttributes.DB_STATEMENT, SpanAttributes.DB_OPERATION], ["DB system", "invalid DB statement", None], keys, values + [SpanAttributes.DB_SYSTEM, SpanAttributes.DB_STATEMENT, SpanAttributes.DB_OPERATION], + ["DB system", "invalid DB statement", None], + keys, + values, ) self._validate_expected_remote_attributes("DB system", _UNKNOWN_REMOTE_OPERATION) # Validate both db.operation and db.statement not exist. keys, values = self._mock_attribute( - [SpanAttributes.DB_SYSTEM, SpanAttributes.DB_STATEMENT, SpanAttributes.DB_OPERATION], ["DB system", None, None], keys, values + [SpanAttributes.DB_SYSTEM, SpanAttributes.DB_STATEMENT, SpanAttributes.DB_OPERATION], + ["DB system", None, None], + keys, + values, ) self._validate_expected_remote_attributes("DB system", _UNKNOWN_REMOTE_OPERATION)