
Foglamp is an observability tool by the Vercel AI SDK ecosystem for monitoring AI agents. It provides costs, latency, tokens, distributed traces, evals, and alerts for every generateText and streamTex
Foglamp is an observability tool built for the Vercel AI SDK ecosystem that monitors AI agents. It captures cost, latency, and quality data for every LLM call, specifically for generateText and streamText functions. The tool provides distributed traces, evals, alerts, and per-agent spend with just two lines of code instrumentation. Its core purpose is to help developers catch bad outputs before end users notice them.
Cost regression detection
Spot unexpected cost spikes (e.g., a 10× increase) within days of shipping an agent.
Quality monitoring
Track eval scores and catch degrading answer quality over time.
Support quality assurance
Identify when an AI assistant gives wrong refund windows or invents tracking links.
Per-agent cost tracking
Break down spending by model, agent, or customer for budget management.
Latency optimization
Monitor per-agent latency and full call flow to identify performance bottlenecks.
Production alerting
Set threshold rules on cost, latency, and error rate to get notified of issues.
One SDK instrumentation
Add two lines of code (`import { foglamp } from "foglamp"` and `const fog = foglamp()`) to instrument every `generateText` and `streamText` call.
Per-agent spans and spend
View individual agent latency, cost, and the full call flow, including sub-tasks like search or writing.
Evals with code checks and LLM judges
Score production traffic using automated code checks and LLM-based evaluations, with a sample pass rate of 94%.
Distributed traces
Waterfall every run and see the exact prompt and response for each span.
Alerts with threshold rules
Set custom thresholds on cost, latency, and error rate to trigger alerts.
Cost intelligence
See exact per-call costs broken down by model, agent, and customer (e.g., Claude Opus $323.12, Gemini $43.06, GPT-5.5 mini $85.05).
Per-agent visibility
Get separate spans, latency, and spending data for each agent in the call flow.
Developers and engineering teams building AI agents with the Vercel AI SDK. Product managers and operations teams who need to monitor LLM costs, latency, and output quality in production. Support teams that rely on AI agents and need to catch incorrect responses before customers complain.
import { foglamp } from "foglamp".const fog = foglamp().generateText and streamText call.The website offers a "Start free" option, but no specific pricing tiers or free trial details are provided.
Foglamp addresses a real pain point for teams shipping AI agents: the invisible cost and quality degradation that can happen after launch. The user testimonial from a co-founder describes catching a 10× cost regression in week one, which suggests the tool delivers immediate value for monitoring. The combination of distributed traces, evals, and per-agent spend gives developers a single pane of glass for agent observability. For teams already using the Vercel AI SDK, this tool likely saves significant debugging time and prevents customer-facing quality issues.
Foglamp is an observability tool by the Vercel AI SDK ecosystem for monitoring AI agents. It provides costs, latency, tokens, distributed traces, evals, and alerts for every generateText and streamTex
Category:AI Plugin/Extension
Visit Link:https://www.foglamp.dev/
Tags:AI monitoring、observability、Vercel AI SDK、agent tracing、LLM analytics