Processor interface
TracingProcessor
Bases:ABC
Interface for processing spans.
Source code insrc/agents/tracing/processor_interface.py
on_trace_startabstractmethod
on_trace_start(trace:Trace)->None
Called when a trace is started.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
trace | Trace | The trace that started. | required |
on_trace_endabstractmethod
on_trace_end(trace:Trace)->None
Called when a trace is finished.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
trace | Trace | The trace that finished. | required |
on_span_startabstractmethod
on_span_start(span:Span[Any])->None
Called when a span is started.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
span | Span[Any] | The span that started. | required |
on_span_endabstractmethod
on_span_end(span:Span[Any])->None
Called when a span is finished. Should not block or raise exceptions.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
span | Span[Any] | The span that finished. | required |