Observe and debug agents
weft records a run as OpenTelemetry data: spans for its structure, log records for its events, transcript and requests. otel.Install sends them to one or more destinations, by default the local sink ./.weft/weft.db. Studio, the devtools panel, the playground and the weft command all read that recording back; the playground also sends commands to your running app, which dials Studio through weft/runtime.
The core reports every run through the OTel API, which does nothing until a provider is registered. weft/otel registers one, configured for weft: one line installs it, each destination has its own content policy, and the local sink needs no network. Any OTLP backend takes the same data, and a non-Go agent that exports the standard GenAI spans appears in Studio too.
Record runs
Section titled “Record runs”Start here. Every other page reads what these pages set up.
- Record every run with otel.Install: one line, the local sink, heartbeats, reading a run back through
obsdb. - Send records to Studio, Datadog, Langfuse or any OTLP backend: several destinations at once, each with its own content policy, queue and signals.
- Bridge your app’s slog lines into runs: your log lines stored under the span they were logged in.
- Use your own OpenTelemetry SDK: weft’s spans and records through your own
TracerProviderandLoggerProvider. - Inspect agents written in other languages: what Studio derives from a Python or TypeScript agent’s GenAI spans.
Studio
Section titled “Studio”The Inspector: a web UI and JSON API over the recording, embedded in your app or run as weft studio.
- Run Studio: embedded, local binary or hosted
- Find runs: the runs list, search and filters
- Read a run in Studio
- Browse sessions and traces in Studio
- Watch runs live
- Compare runs step by step
- See what a run cost
- Export a run
- Get around Studio: keyboard, panes and settings
Playground
Section titled “Playground”Your app dials Studio and runs its experiment commands as runs of the agents you register.
- How does the playground work?
- Connect your app to Studio’s playground (weft/runtime)
- Replay a run from any step, with edits
- Run experiments with the option lab
- Pause runs at breakpoints, then steer or cancel them
Devtools panel
Section titled “Devtools panel”Studio’s run view inside your own web page, scoped to the conversation on screen.
- What is the devtools panel?
- Install the devtools panel
- Scope the panel to a conversation
- Lay out and theme the panel
- Drive the panel from your page (host API and events)
- Read a run in the panel
- Replay, edit and experiment from the panel
- Approve and steer your app’s own turns
- Secure the devtools panel
The weft command
Section titled “The weft command”- Use the weft command: list runs, open one, export it, check a Studio.
- Develop with weft dev: Studio and your app in one command, restarted on save.
- Let Claude Code or Cursor read your runs (weft mcp)
See also
Section titled “See also”- Record every run with otel.Install: the page to read first
- Environment variables: what adds a destination without code
- The record contract: what the pipeline emits and what Studio reads, field by field