
Spanlens
FreeOpen-source LLM observability and monitoring for tracing, cost tracking, evaluations, and provider performance.

About Spanlens
Spanlens is an open-source LLM observability and monitoring platform for applications using OpenAI, Anthropic, Gemini, and other supported providers. A baseURL change or drop-in SDK captures request logs, token usage, cost, latency, streaming activity, and nested agent traces across tools, retrievals, and model calls.
It also supports prompt versioning, exact-match caching, CI-based evaluations, alerts, OpenTelemetry ingest and export, CSV/JSON/JSONL data export, and PII detection with API-key masking. Spanlens offers a permanent free tier, paid cloud plans, and free self-hosting under the MIT license. Human review remains available for uncertain evaluation cases.
Key Features
- Request logging with cost, token, latency, and provider data
- Nested agent tracing across tools, retrievals, model calls, parallel branches, and evaluations
- Live cost tracking by model and project, including cache savings
- Prompt version pinning with cost and score comparisons on real traffic
- Exact-match response caching through a request header
- CI-based evaluations with merge gates and human review queues for uncertain cases
- PII detection, API-key masking, configurable prompt-body logging, and OpenTelemetry support
Use Cases
- Monitoring production LLM applications and model calls
- Tracing multi-step AI agents and retrieval-augmented workflows
- Tracking model spending, token usage, latency, and cache savings
- Comparing prompt versions using cost, quality, and latency results
- Running LLM evaluations in continuous integration pipelines
- Investigating error bursts, cost spikes, and latency drift
- Exporting request data for analysis and reporting
Frequently Asked Questions
The website names OpenAI, Anthropic, and Gemini, and states that 10 providers are routed through the same endpoint. The proxy speaks each provider natively.
You can change a provider baseURL or use the drop-in SDK. The existing SDK call stays the same, while Spanlens captures request logs, cost, and latency.
Yes. The proxy supports streaming, tools, and structured output. The site also states that partial traces are written after the 290-second streaming deadline.
Yes. Spanlens supports OTLP over HTTP for ingest and export. Existing OpenTelemetry traces flow into the same span store, with LLM-specific attributes added to LLM spans.
PII detectors flag items such as Social Security numbers, credit card numbers, emails, IBANs, and passports for review. API keys found in prompts are masked, and prompt-body logging can be disabled per call.
Yes. The Free plan costs $0 per month and includes 50,000 requests per month, 14-day retention, one seat, core features, and community support.
Pro costs $29 per month for 100,000 requests and 90-day retention. Team costs $149 per month for 1 million requests and 365-day retention. Enterprise pricing is custom.
Yes. Spanlens is MIT licensed and provides a Docker image for self-hosting. The website describes self-hosting as free, with unlimited requests, history, and no seat limit.
Yes. Evals score responses with an LLM-as-judge on a 0-to-1 scale. Experiments can replay a dataset across prompt versions and models to compare quality, cost, and latency.
Discover your next favorite AI tool
Get handpicked AI tools, fresh launches, and practical insights delivered to your inbox.