xBis7 commented on code in PR #49180:
URL: https://github.com/apache/airflow/pull/49180#discussion_r2157493061


##########
airflow-core/src/airflow/traces/tracer.py:
##########
@@ -254,6 +254,13 @@ class _TraceMeta(type):
     factory: Callable[[], Tracer] | None = None
     instance: Tracer | EmptyTrace | None = None
 
+    def __new__(cls, name, bases, attrs):
+        # Read the debug flag from the class body.
+        if "check_debug_traces_flag" not in attrs:
+            raise TypeError("Class must define 'check_debug_traces_flag'.")

Review Comment:
   Done.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to