Glasstrace
The missing observability layer between your client and your backend — designed from day one for AI agents, priced for solo developers.
npm install @glasstrace/sdk The debug loop has a blind spot
Your AI coding agent can see the broken UI. It cannot see that a Prisma query failed because a foreign key constraint was violated by a migration that ran an hour ago.
Without Glasstrace
- Something breaks in your app
- You copy the error message
- You paste it into agent chat
- The agent guesses at the cause
- You go back and forth, losing context
With Glasstrace
- Something breaks in your app
- Your agent calls
get_latest_error - It gets the full span tree: route, query, error, stack
- It fixes the actual root cause
Three products, one debug loop
SDK
Trace Capture
Drop-in instrumentation for Next.js. Captures API routes, database queries, and errors as structured traces — zero config.
Browser Extension
Client Correlation
Links browser interactions to server-side traces. Your agent sees what the user clicked that caused the server error.
MCP Server
Agent Debugging
Five MCP tools that give your AI coding agent direct access to structured traces, root cause analysis, and test suggestions.
How it works
Install the SDK
npm install @glasstrace/sdk
npx @glasstrace/sdk init One package, one command. Instruments your Next.js API routes, database queries, and fetch calls automatically.
Trigger an error
Develop as you normally would. When something breaks, Glasstrace captures the full server-side causal chain as a structured trace — from the incoming request through every database query to the error.
Your agent debugs it
Your AI coding agent calls Glasstrace via MCP. No copy-pasting, no screenshots, no guessing.
{
"tool": "get_latest_error",
"result": {
"route": "POST /api/checkout",
"error": "PrismaClientKnownRequestError: Foreign key constraint violated",
"spans": [
{
"name": "POST /api/checkout",
"duration_ms": 142
},
{
"name": "prisma:query orders.create",
"duration_ms": 38,
"error": true
}
]
}
} Pricing
Start tracing with zero friction. No account, no credit card, no setup. Upgrade when you need enrichment and longer retention.
Anonymous
- Storage TTL 48 hours
- Traces per minute 100
- Concurrent sessions 1
- LLM enrichment No
- Coverage map No
- Dashboard No
Free Trial
Credit card required at signup
- Storage TTL 7 days
- Traces per minute 500
- Concurrent sessions 1
- LLM enrichment Yes (Anthropic)
- Coverage map Yes
- Dashboard Yes
Pro
Credit card required at signup
- Storage TTL 90 days
- Traces per minute 2,000
- Concurrent sessions 10
- LLM enrichment Yes (Anthropic)
- Coverage map Yes
- Dashboard Yes
New accounts start on the 30-day Free Trial. If you choose Pro, billing begins after the trial ends.
Why Glasstrace?
vs. Sentry / Datadog
Built for AI agents, not dashboards — your agent queries traces via MCP, not you clicking through a UI.
vs. raw OpenTelemetry
Zero-config for Next.js — no collector, no Jaeger, no YAML.
vs. console.log
Structured traces, not string searching — your agent gets span trees, not text blobs.
Built for developers who ship with AI
Built by Erik Mitchell
Security: security@glasstrace.dev