Skip to content

Commit 3c00ed7

Browse files
committed
Reverts to the previous usage of set_attributes method.
1 parent 1239fc5 commit 3c00ed7

File tree

1 file changed

+1
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-aiohttp-server/src/opentelemetry/instrumentation/aiohttp_server

1 file changed

+1
-2
lines changed

instrumentation/opentelemetry-instrumentation-aiohttp-server/src/opentelemetry/instrumentation/aiohttp_server/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from opentelemetry.instrumentation.aiohttp_server.package import _instruments
66
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
77
from opentelemetry.instrumentation.utils import http_status_to_status_code
8-
from opentelemetry.propagate import extract
98
from opentelemetry.propagators.textmap import Getter
109
from opentelemetry.semconv.trace import SpanAttributes
1110
from opentelemetry.trace.status import Status, StatusCode
@@ -150,7 +149,7 @@ async def middleware(request, handler):
150149
) as span:
151150
attributes = collect_request_attributes(request)
152151
attributes.update(additional_attributes)
153-
span.setattributes(attributes)
152+
span.set_attributes(attributes)
154153
resp = await handler(request)
155154
set_status_code(span, resp.status)
156155
return resp

0 commit comments

Comments
 (0)