From bc2a35c83f4c22b9fdf8e95253c2955ba3ae066b Mon Sep 17 00:00:00 2001 From: botbikamordehai2-sketch Date: Thu, 28 May 2026 09:41:05 +0000 Subject: [PATCH] fix: correct coroutine_wrapper target in wrap_AsyncBackgroundExecutor_submit (closes #1739) --- newrelic/hooks/mlmodel_langgraph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newrelic/hooks/mlmodel_langgraph.py b/newrelic/hooks/mlmodel_langgraph.py index f7a3380f04..a2ab62a81a 100644 --- a/newrelic/hooks/mlmodel_langgraph.py +++ b/newrelic/hooks/mlmodel_langgraph.py @@ -82,7 +82,7 @@ def wrap_AsyncBackgroundExecutor_submit(wrapped, instance, args, kwargs): return wrapped(*args, **kwargs) context = ContextOf(trace=trace, strict=True) - func = coroutine_wrapper(wrapped, context) + func = coroutine_wrapper(func, context) return wrapped(func, *args, **kwargs)