Python SDK for LLM observability - instrument once, observe everywhere
No traces appearing
Connection timeouts
Memory usage
Async/await issues
trace(event_type, data, metadata=None)
: Send a trace event (async)trace_sync(event_type, data, metadata=None)
: Send a trace event (sync)trace_batch(traces)
: Send multiple traces in batch (async)update_trace(trace_id, data)
: Update an existing trace (async)get_trace(trace_id)
: Retrieve a trace by ID (async)close()
: Close the HTTP clientUntraceError
: Base exception for all SDK errorsUntraceAPIError
: Raised when API requests failUntraceValidationError
: Raised when request validation failsUntraceTimeoutError
: Raised when requests timeout