Spanlens
For developers: Spanlens logs every LLM API call with cost, latency, and tokens so you optimize spend and catch performance issues instantly.
Built by HAESEONG JEON · Free
Spanlens is a Community listing on Launch Llama with 2 total upvotes, founded by HAESEONG JEON who joined in Jul 2026, compared against 6 alternatives.
Community listing
Listing status
2upvotes
Community score
HAESEONG JEON (Joined Jul 2026)
Founder
Compared against 6 alternatives
Market comparison
Launched on Launch Llama Jul 3, 2026 · #12 of 19 that day
About
Spanlens is an open-source (MIT) LLM observability platform that lets developers monitor every call their application makes to OpenAI, Anthropic, Gemini, Mistral, OpenRouter, Azure OpenAI, or a local Ollama model. Integration takes one line: swap your client's baseURL to the Spanlens proxy, or run "npx @spanlens/cli init" and the wizard rewrites your code automatically. From that moment, every request is recorded with its model, token counts, latency, cost, and full prompt and response body, with streaming responses reconstructed automatically.
The dashboard turns that raw log into operational insight. Cost tracking breaks spend down per request, per model, and per end user, and parses prompt-cache tokens separately so you see real cache savings rather than sticker price. Agent tracing visualizes multi-step workflows as Gantt waterfalls and node-and-edge graphs, highlighting the critical path so you can find the slowest dependency chain in a fan-out. Anomaly detection flags 3-sigma deviations in latency, cost, or error rate against a rolling 7-day baseline with root-cause hints. Alerts on budget, error rate, and p95 latency are delivered to Email, Slack, or Discord.
Spanlens goes beyond passive logging. A regex-based PII and prompt-injection scanner inspects request and response bodies and can block injections at the proxy. The savings engine spots calls that match a cheaper model's profile (for example, a gpt-4o call that looks like a classification task) and estimates the monthly saving from switching. Prompt versioning with A/B experiments compares versions on latency, cost, and error rate using Welch's t-test for statistical significance, and an LLM-as-judge evaluation framework (judge with OpenAI, Anthropic, or Gemini) scores outputs against rubric anchors, with human agreement measured by Pearson r or Cohen's kappa. Reusable datasets power offline evals and regression checks.
Use Cases
- Tracking cost, latency and token usage for every LLM API call across OpenAI, Anthropic and other providers by changing one baseURL
- Debugging a slow or expensive AI agent by opening a nested trace of its tool calls, retrievals and model calls
- Gating prompt changes in CI with automated LLM evals and pinned prompt versions compared on real traffic
Who it is for
- Developers shipping LLM features in production who need to optimize API spend and catch performance issues
- Engineering teams running several AI products who need shared cost monitoring, alerts and access control
- Teams that want self-hostable, open-source LLM observability with OpenTelemetry support
Pricing
Spanlens is free to use. See the website for details.
FAQ
How does instrumentation work?
Change your provider baseURL or use our drop-in SDK to capture request logs, cost, and latency. Streaming responses are supported, and request logs are saved asynchronously.
What about latency overhead?
Request logs are saved asynchronously, reducing the time spent waiting for log storage during request handling. See our benchmarks for measured CPU work and the measurement method.
How do you handle PII?
PII detectors (SSN, credit card, email, IBAN, passport, etc.) run at log time and flag matches for review in the Security dashboard, without blocking the request. API keys that slip into prompts are auto-masked before the row lands on disk. For workloads where prompt bodies must not be stored at all, opt out per-call with X-Spanlens-Log-Body: meta.
Do you support OpenTelemetry?
Yes. OTLP/HTTP ingest and export. Your existing OTel tracing flows into the same span store; LLM spans get LLM-specific attributes on top.
What's the data retention?
Free is 14 days. Pro is 90 days, Team is 365 days. Enterprise & self-hosted are configurable, including unlimited.
Can I export my data?
Export request data in CSV, JSON, or JSONL for analysis and reporting.
Can Spanlens tell me if a prompt actually got better?
Yes. Evals scores responses with an LLM-as-judge on a 0 to 1 scale, per prompt version. Pair it with Experiments to replay a dataset across versions and models, so you compare quality, cost, and latency on the same inputs before you roll out.
Does Spanlens work for a whole team?
Projects isolate workloads, roles and invitations manage access, and audit logs record every change. Team and Enterprise add Slack, webhooks, unlimited alerts, and SSO.
What is Spanlens?
Spanlens is an open-source (MIT) LLM observability platform that logs every OpenAI, Anthropic, and Gemini request in one line of code. It tracks cost, latency, and tokens; traces multi-step agent workflows; catches anomalies and PII; and recommends cheaper models with dollar-figure savings estimates. Available as hosted SaaS at spanlens.io or as a self-hostable Docker image.
Who is Spanlens for?
LLM application developers shipping to production who need to see what their AI is doing. Common users include solo developers debugging cost spikes, teams running RAG chatbots, and AI agencies tracking per-customer spend. Spanlens replaces the "console.log + spreadsheet" workflow with a real observability stack.
Alternatives
New on Launch Llama
Launched this week · This month's launches · All products A–Z
Ask AI about Spanlens
Supporters
1 founder
1 founder supported Spanlens on Launch Llama.
For bots & AI agents
Machine-readable versions of Spanlens and Launch Llama. Fetch these instead of parsing this page.
This listing (.md) llms.txt llms-full.txt ai.txt Full catalog (.md) Endpoint index API docs MCP server MCP manifest Developer docs