Spanwise docs
Install the SDK, wrap your agent, and see your first trace in five minutes. Then add evals and alerts.
/
All guides
Get started
- QuickstartTrace your first agent in five minutes
- ConceptsRuns, spans, sessions and evals
- RedactionKeep personal data on your servers
SDKs
- TypeScript SDKNode, Bun, Deno and edge runtimes
- Python SDKSync, async and threaded agents
- OpenTelemetrySend spans from any language
Evals
- Checks in codeDeterministic rules on every run
- Model as judgeRubrics, calibration and cost
- Evals in CIBlock merges that make answers worse
Platform
- AlertsSlack, PagerDuty and webhooks
- DatasetsTurn production runs into test cases
- REST APIQuery runs and scores from your own tools
Quickstart
- 1Install the SDKOne package from npm or pip.
- 2Wrap your agentEvery call inside it becomes a span.
- 3Open the runIt appears in Spanwise within two seconds.
// npm i spanwise
import { trace } from "spanwise";
const agent = trace(myAgent, { name: "refund-agent" });
await agent.run(ticket);$ npx tsx agent.ts
spanwise · tracing refund-agent
✓ 6 spans received · 0.8 ms overhead
→ app.spanwise.dev/runs/7f3a