From a7137d7d5cb35be0aeab34cdf8d124f99e263cc4 Mon Sep 17 00:00:00 2001 From: Kaxil Naik Date: Wed, 13 Nov 2024 23:58:01 +0000 Subject: [PATCH] Stop passing "context" dict in OTel traces (#43991) The context dict could be huge and contain DAG and TI object! https://github.com/apache/airflow/blob/517132d60bac707fc7e8b513c3f80f31d4c5e9b3/airflow/models/taskinstance.py#L1118-L1169 --- airflow/models/taskinstance.py | 1 - 1 file changed, 1 deletion(-) diff --git a/airflow/models/taskinstance.py b/airflow/models/taskinstance.py index cb106b171114..410cdd8773d3 100644 --- a/airflow/models/taskinstance.py +++ b/airflow/models/taskinstance.py @@ -1257,7 +1257,6 @@ def _handle_failure( # ---- error info ---- "error": "true", "error_msg": str(error), - "context": context, "force_fail": force_fail, # ---- common info ---- "category": "DAG runs",