Skip to content

Commit

Permalink
fix(fastapi): do not use deprecated import path
Browse files Browse the repository at this point in the history
Current code generates warning:
  ddtrace.DDTraceDeprecationWarning: ddtrace.contrib.asgi.middleware.__path__ is deprecated
  • Loading branch information
jd committed Sep 13, 2024
1 parent 111519b commit c80e574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/contrib/internal/fastapi/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from ddtrace import Pin
from ddtrace import config
from ddtrace.appsec._iast._utils import _is_iast_enabled
from ddtrace.contrib.asgi.middleware import TraceMiddleware
from ddtrace.contrib.internal.asgi.middleware import TraceMiddleware
from ddtrace.contrib.internal.starlette.patch import _trace_background_tasks
from ddtrace.contrib.internal.starlette.patch import traced_handler
from ddtrace.internal.logger import get_logger
Expand Down

0 comments on commit c80e574

Please sign in to comment.