Skip to content

Commit 60e1706

Browse files
committed
fix conflicts with main
Signed-off-by: emdneto <[email protected]>
1 parent 18b8962 commit 60e1706

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ def client_response_hook(span: Span, scope: dict[str, Any], message: dict[str, A
210210
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
211211
from opentelemetry.metrics import MeterProvider, get_meter
212212
from opentelemetry.semconv.attributes.http_attributes import HTTP_ROUTE
213-
from opentelemetry.semconv.trace import SpanAttributes
214213
from opentelemetry.trace import TracerProvider, get_tracer
215214
from opentelemetry.util.http import (
216215
get_excluded_urls,

instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@ def test_fastapi_unhandled_exception(self):
263263
self.assertEqual(len(spans), 3)
264264
span = spans[0]
265265
assert span.name == "GET /error http send"
266-
assert span.attributes[SpanAttributes.HTTP_STATUS_CODE] == 500
266+
assert span.attributes[HTTP_STATUS_CODE] == 500
267267
span = spans[2]
268268
assert span.name == "GET /error"
269-
assert span.attributes[SpanAttributes.HTTP_TARGET] == "/error"
269+
assert span.attributes[HTTP_TARGET] == "/error"
270270

271271
def test_sub_app_fastapi_call(self):
272272
"""

0 commit comments

Comments
 (0)