dragon.ai.agent.observability.tracer.TracingProcessor

class TracingProcessor[source]

Bases: object

Abstract base for trace backends.

Subclasses must implement both methods. Each method receives a Span instance and should handle it synchronously (the caller awaits if needed).

__init__()

Methods

__init__()

on_span_end(span)

Called when a span ends (end_time is set).

on_span_start(span)

Called when a span starts (end_time is None).

on_span_start(span: Span) None [source]

Called when a span starts (end_time is None).

on_span_end(span: Span) None [source]

Called when a span ends (end_time is set).