Skip to content

Commit 4493759

Browse files
outergodalexmojaki
andauthored
improve comemnt
Co-authored-by: Alex Hall <[email protected]>
1 parent 3007304 commit 4493759

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,7 @@ def instrument_app(
291291
)
292292

293293
def build_middleware_stack(self: Starlette) -> ASGIApp:
294-
# Define an additional middleware for exception handling that gets
295-
# added as a regular user middleware.
294+
# Define an additional middleware for exception handling
296295
# Normally, `opentelemetry.trace.use_span` covers the recording of
297296
# exceptions into the active span, but `OpenTelemetryMiddleware`
298297
# ends the span too early before the exception can be recorded.

0 commit comments

Comments
 (0)