kaxil commented on code in PR #74769:
URL: https://github.com/apache/airflow/pull/74769#discussion_r4284747699


##########
providers/common/ai/src/airflow/providers/common/ai/tools/openai_agents.py:
##########
@@ -152,3 +176,176 @@ async def call_airflow_tool(ctx: ToolContext[Any], 
arguments: str) -> str:
         on_invoke_tool=call_airflow_tool,
         strict_json_schema=False,
     )
+
+
+class AirflowTraceProcessor(TracingProcessor):
+    """
+    An OpenAI Agents SDK trace processor that records the SDK's traces as 
OpenTelemetry spans.
+
+    The SDK has a tracing system of its own rather than OpenTelemetry. 
Register this
+    processor with it and every trace becomes a tree of OpenTelemetry spans 
under the span
+    that was current when the trace started, so a run inside a task nests 
under the task's
+    span:
+
+    .. code-block:: python
+
+        from agents import set_trace_processors

Review Comment:
   Fixed in 6d5e7359798: the example now imports `Runner`.



-- 
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