From c80e5744af0452f8a504ad0db881fa337afdfb10 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 13 Sep 2024 10:21:26 +0200 Subject: [PATCH] fix(fastapi): do not use deprecated import path Current code generates warning: ddtrace.DDTraceDeprecationWarning: ddtrace.contrib.asgi.middleware.__path__ is deprecated --- ddtrace/contrib/internal/fastapi/patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddtrace/contrib/internal/fastapi/patch.py b/ddtrace/contrib/internal/fastapi/patch.py index cd6f580a082..e4a28b42832 100644 --- a/ddtrace/contrib/internal/fastapi/patch.py +++ b/ddtrace/contrib/internal/fastapi/patch.py @@ -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