Skip to content

Commit 0b76908

Browse files
committed
lint
1 parent c7039be commit 0b76908

File tree

1 file changed

+3
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ def build_middleware_stack(self: Starlette) -> ASGIApp:
314314
return stack
315315

316316
app._original_build_middleware_stack = app.build_middleware_stack
317-
app.build_middleware_stack = types.MethodType(build_middleware_stack, app)
317+
app.build_middleware_stack = types.MethodType(
318+
build_middleware_stack, app
319+
)
318320

319321
app._is_instrumented_by_opentelemetry = True
320322
if app not in _InstrumentedFastAPI._instrumented_fastapi_apps:

0 commit comments

Comments
 (0)