Skip to content

Commit a0546d4

Browse files
committed
refactor(fastapi): drop __del__ as WeakSet handles cleanup
1 parent 48799a3 commit a0546d4

File tree

1 file changed

+0
-4
lines changed
  • instrumentation/opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,6 @@ def __init__(self, *args, **kwargs):
437437
)
438438
_InstrumentedFastAPI._instrumented_fastapi_apps.add(self)
439439

440-
def __del__(self):
441-
# Best-effort cleanup; WeakSet clears references on GC automatically
442-
_InstrumentedFastAPI._instrumented_fastapi_apps.discard(self)
443-
444440

445441
def _get_route_details(scope):
446442
"""

0 commit comments

Comments
 (0)