Skip to content

Commit 942fa6f

Browse files
committed
fix precommit linting
1 parent b64f519 commit 942fa6f

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

instrumentation/opentelemetry-instrumentation-boto/src/opentelemetry/instrumentation/boto/__init__.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@
5252
from opentelemetry.instrumentation.boto.version import __version__
5353
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
5454
from opentelemetry.instrumentation.utils import unwrap
55-
from opentelemetry.semconv._incubating.attributes.http_attributes import HTTP_METHOD, HTTP_STATUS_CODE
55+
from opentelemetry.semconv._incubating.attributes.http_attributes import (
56+
HTTP_METHOD,
57+
HTTP_STATUS_CODE,
58+
)
5659
from opentelemetry.trace import SpanKind, get_tracer
5760

5861
logger = logging.getLogger(__name__)
@@ -158,12 +161,8 @@ def _common_request( # pylint: disable=too-many-locals
158161
for key, value in meta.items():
159162
span.set_attribute(key, value)
160163

161-
span.set_attribute(
162-
HTTP_STATUS_CODE, getattr(result, "status")
163-
)
164-
span.set_attribute(
165-
HTTP_METHOD, getattr(result, "_method")
166-
)
164+
span.set_attribute(HTTP_STATUS_CODE, getattr(result, "status"))
165+
span.set_attribute(HTTP_METHOD, getattr(result, "_method"))
167166

168167
return result
169168

instrumentation/opentelemetry-instrumentation-boto/tests/test_boto_instrumentation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828
)
2929

3030
from opentelemetry.instrumentation.boto import BotoInstrumentor
31-
from opentelemetry.semconv._incubating.attributes.http_attributes import HTTP_METHOD,HTTP_STATUS_CODE
31+
from opentelemetry.semconv._incubating.attributes.http_attributes import (
32+
HTTP_METHOD,
33+
HTTP_STATUS_CODE,
34+
)
3235
from opentelemetry.test.test_base import TestBase
3336

3437

0 commit comments

Comments
 (0)