diff --git a/ee/api/chalicelib/core/traces.py b/ee/api/chalicelib/core/traces.py index 5b7db3e64..d20134435 100644 --- a/ee/api/chalicelib/core/traces.py +++ b/ee/api/chalicelib/core/traces.py @@ -144,7 +144,7 @@ def trace(action: str, path_format: str, request: Request, response: Response): if response.background is None: response.background = background_task else: - response.background.add_task(background_task.func, *background_task.args, *background_task.kwargs) + response.background.add_task(background_task) async def process_traces_queue():