score submits a programmatic score; it does not start a platform evaluation. Scores use a string value, including numeric values such as "0.95". Export completion is separate from platform persistence and evaluation completion.
See tracing quickstart for provider/framework setup.
flush() and shutdown() block; call them outside latency-sensitive async work or offload them when necessary. Client does not install itself as the global client; init() does.
On this page
Client, version, flush, get_client, init, score, shutdown.Example
Client
Constructor
Fields and properties
Methods
capture_traces
capture_traces
Capture IDs submitted by existing instrumentation in an explicit scope.
trace
trace
Start a new trace and return a
TraceContext context manager.log_trace
log_trace
Queues a prebuilt trace record for export. This is asynchronous ingestion, not confirmation that the trace is persisted.
score
score
Submit a programmatic score for a trace.
flush
flush
Block until all queued items are sent.
shutdown
shutdown
Flush remaining items and release resources.
on_error
on_error
Registers a callback for export transport errors. Errors inside the callback are caught by the SDK.
__version__
flush
get_client
init
score
shutdown
Signatures and fields are generated from the SDK source. See the import index for available entry points.

