Skip to main content
The tracing client owns configuration and a background export queue. Use an explicit client when an application needs separate identities; use the module-level helpers for the global client. Initialization does not activate Reflect. Client construction resolves credentials from arguments and environment variables. Missing API key or project name raises when tracing is enabled. The global getter attempts environment initialization once and returns no client if it cannot initialize. Reinitializing the global client shuts down its predecessor. 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. Await flush() and shutdown(). Client does not install itself as the global client; init() does. Global helpers return promises where the underlying operation is asynchronous.

On this page

Client, VERSION, flush, getClient, init, score, shutdown.

Example

Client

Source declaration

Constructor

Fields and properties

Methods

Create a new TraceContext.
Queues a prebuilt trace record for export. This is asynchronous ingestion, not confirmation that the trace is persisted.
Capture existing submissions inside an explicit asynchronous application boundary.
Submit a programmatic score for a trace.
Block until all queued items are sent.
Flush remaining items and release resources.
Registers a callback for export transport errors. Errors inside the callback are caught by the SDK.

VERSION

Source declaration Type: "0.5.0". Value: "0.5.0".

flush

Block until all queued items are sent (delegates to the global client). Source declaration

getClient

Return the current global client. Source declaration

init

Configure and set the global PandaProbe client singleton. Source declaration

score

Submit a programmatic score for a trace (delegates to the global client). Source declaration

shutdown

Flush remaining items and release resources (delegates to the global client). Source declaration

Signatures and fields are generated from the SDK source. See the import index for available entry points.