Export spans collected from a SpanBuffer or a list of ReadableSpan
export_spans(spans: SpanBuffer | List[ReadableSpan]) -> bool
True
from keywordsai_tracing import get_client client = get_client() with client.get_span_buffer("trace-xyz") as buffer: buffer.create_span("task", {"success": True}) spans = buffer.get_all_spans() client.export_spans(spans)
Was this page helpful?