setup¶
AdalFlow tracing setup and providers module with OpenAI Agents SDK compatibility.
This module provides the core tracing infrastructure for AdalFlow, including trace providers and multi-processor management following OpenAI Agents SDK patterns.
References: - OpenAI Agents SDK: https://github.com/openai/openai-agents-python/blob/main/src/agents/tracing/setup.py
- class SynchronousMultiTracingProcessor[source]¶
Bases:
TracingProcessor
Forwards all calls to a list of TracingProcessors, in order of registration.
- add_tracing_processor(tracing_processor: TracingProcessor)[source]¶
Add a processor to the list of processors. Each processor will receive all traces/spans.
- set_processors(processors: list[TracingProcessor])[source]¶
Set the list of processors. This will replace the current list of processors.
- class TraceProvider[source]¶
Bases:
object
- register_processor(processor: TracingProcessor)[source]¶
Add a processor to the list of processors. Each processor will receive all traces/spans.
- set_processors(processors: list[TracingProcessor])[source]¶
Set the list of processors. This will replace the current list of processors.
- create_trace(name: str, trace_id: str | None = None, group_id: str | None = None, metadata: Dict[str, Any] | None = None, disabled: bool = False) Trace [source]¶
Create a new trace.