qmetrics.net

Spanlens

Open-source LLM observability proxy with cost tracking and agent tracing

Spanlens screenshot

LLM observability tool that logs every OpenAI, Anthropic, Gemini and other provider call with cost, tokens, latency and agent traces. Works by changing the base URL or using a drop-in SDK; self-hostable with Docker

Overview

Spanlens is an LLM observability and monitoring platform. You point your OpenAI, Anthropic or Gemini client at its proxy, or use its drop-in SDK, and every call is logged with model, provider, tokens, cost, latency and the full request and response body. Streaming responses are reconstructed, and logs are saved asynchronously so they stay off the critical path. Other providers such as Mistral, Groq, DeepSeek, xAI, OpenRouter, Cohere and Azure are routed the same way, and a single unified project key covers all of them.

Beyond the request log, it offers agent tracing as span trees with a critical-path view, per-request cost breakdowns with daily rollups and budget alerts, prompt-cache savings, and per-end-user analytics. Anomaly detection compares latency, cost and error rate with a 7-day baseline. Alerts go out by email, Slack or Discord. PII and prompt-injection scanning can flag or optionally block requests, and a per-request header controls how much of each body is stored.

For prompt and quality work it includes prompt versioning with A/B experiments, a playground, datasets, and LLM-as-judge evals with human annotation. It also offers opt-in exact-match response caching, model recommendations for cheaper alternatives, outbound HMAC-signed webhooks, OTLP/HTTP trace ingest, CSV and JSON export, and an OpenAPI spec. Integrations cover the Vercel AI SDK, LangChain, LlamaIndex and Ollama, plus a CLI and an MCP server for querying data from Cursor or Claude Desktop.

Teams get workspaces, projects, admin, editor and viewer roles, invitations and an audit log. Data is stored in Supabase Postgres. A hosted version is available with free and paid tiers, and the server can also be run yourself from a Docker image, with configurable retention.

Key features

  • Drop-in proxy for OpenAI, Anthropic, Gemini and more
  • Request log with cost, tokens and latency
  • Agent tracing with span trees
  • Anomaly detection and alerts
  • PII and prompt-injection scanning
  • Prompt versioning and A/B experiments
  • LLM-as-judge evals and datasets
  • OTLP ingest and MCP server

Use cases

  • Tracking LLM spend per model, feature or end user
  • Debugging multi-step agent runs
  • Comparing prompt versions on real traffic
  • Detecting cost spikes and error bursts
  • Self-hosting LLM logging for privacy

Tags

Similar software

Langfuse

Open-source AI engineering platform for LLM observability, evals and prompts

Langfuse is an open-source platform for tracing, evaluating and managing AI agents and LLM calls. It covers observability, prompt and skill management, evaluations, dashboards and an AI gateway, as cloud or self-hosted

★ 37.9k⟳ todayMIT · open core
Open Source Alternative to:BraintrustDatadog+2

Opik

Self-hostable LLM observability and agent evaluation platform

Opik traces LLM and AI agent calls, runs evaluations and experiments, manages prompts, and monitors production usage through dashboards and online scoring rules

★ 23.5k⟳ todayApache-2.0
Open Source Alternative to:BraintrustDatadog LLM Observability

RagaAI Catalyst

Python SDK for LLM project observability and evaluation

RagaAI Catalyst is a Python package for managing LLM projects: datasets, evaluations, traces, prompts, guardrails, and agent monitoring via authenticated API access.

★ 16.2k⟳ 1 year agoApache-2.0
AI Development PlatformsNo commits in 18+ monthsDesktop/CLI app

Arize Phoenix

AI observability and evaluation platform for LLM applications

Arize Phoenix is a platform for tracing, evaluating and debugging LLM applications. It offers datasets, experiments, a prompt playground and prompt management, built on OpenTelemetry and OpenInference instrumentation.

★ 12.5k⟳ 2 days agoSource-available

OpenLLMetry

Open-source OpenTelemetry-based observability for LLM applications

OpenLLMetry is a set of OpenTelemetry extensions and a Traceloop SDK that trace LLM applications, including LLM provider and vector database calls, and send standard telemetry to existing observability tools.

★ 7.6k⟳ 4 days agoApache-2.0

Latitude

Open-source observability for AI agents with automated fix dispatch

Observability platform for AI agents that traces production runs, groups failures into tracked signals, dispatches coding agents to fix them, and replays fixes against real failing traces.

★ 4.8k⟳ 3 days agoMIT
Open Source Alternative to:BraintrustDatadog LLM Observability