Skip to main content
Use the Go trace builder when you want the graph to include application-side runtime work that the provider proxy cannot observe directly.

Quickstart

Start with client creation, agent initialization, and your first trace event.

Proxy Transport

Review the Go proxy flow before adding runtime events on top of proxied traffic.

Manual Events API

Compare the Go helpers with the raw REST ingest endpoint and event schema.

Minimal runtime tracing

Prompt caching-aware usage

Hybrid pattern

Use hybrid mode when the proxy already captures the model exchange, but you still want application-side tool timing and output.

Self-hosted overrides

Method map

Linking events to users

Use ExternalUserID to associate events with your application user IDs:
The ExternalUserID is stored on every event and trace, allowing you to filter and analyze traces by your own user identifiers.