Skip to main content
ToolPotion
AI Advisor
Submit a Tool (Free)

Spanlens

Spanlens is an open-source LLM observability platform for OpenAI, Anthropic, and Gemini. It offers request logging, cost tracking, agent tracing, anomaly detection, and PII scanning. Self-hostable under an MIT license, it helps developers understand and optimize their AI applications in production. The platform provides detailed insights into model performance and expenditure.

Visit Website
Share
Spanlens screenshot
Spanlens screenshot

Spanlens is an open-source LLM observability and monitoring platform designed for developers working with OpenAI, Anthropic, and Gemini models. It provides comprehensive tools to track, analyze, and optimize the performance and cost of AI applications. The platform is available as a hosted SaaS solution or can be self-hosted using a Docker image, offering flexibility for various deployment needs.

Read More

Core functionalities include detailed request logging, capturing every LLM call with information such as model used, tokens, cost, latency, and full request/response bodies. Users can filter, group, and export this data for in-depth analysis. Cost tracking offers per-request breakdowns, daily rollups, and budget alerts to help manage expenditure effectively. For multi-step AI workflows, Spanlens provides agent tracing, visualizing processes as waterfall span trees to identify performance bottlenecks.

Security features are robust, including anomaly detection for latency or cost deviations and PII (Personally Identifiable Information) scanning. PII patterns are flagged for review, and API keys are auto-masked before storage, ensuring sensitive data protection. The platform also offers a model recommender, suggesting cheaper models for specific use cases based on observed call patterns, complete with cost-saving estimates.

Spanlens supports evaluation (Evals) by scoring responses using an LLM-as-judge, enabling developers to compare different prompt versions and models based on quality, cost, and latency. Experimentation and dataset replay capabilities allow for rigorous testing of prompt changes. User analytics provide insights into per-end-user and per-session costs, volume, and errors, helping identify high-budget consumers.

Integration is designed to be straightforward, requiring a simple change to the provider's base URL or using a drop-in SDK. It supports streaming responses and saves request logs asynchronously to minimize latency overhead. Spanlens is compatible with existing OpenTelemetry setups, allowing LLM-specific attributes to be layered on top of standard span data. The platform is built by a small team with a background in production LLM application development and is MIT licensed, ensuring all features are available in both hosted and self-hosted builds.

  • CategoryAI DevOps & Cloud Tools
  • Pricing ModelFreemium
  • DeploymentCloud, Self-hosted
  • PlatformsWeb

  • Open-source LLM observability and monitoring

  • Request logging with model, tokens, cost, latency, and full body

  • Cost tracking with per-request breakdown and daily rollups

  • Agent tracing for multi-step workflows as waterfall span trees

  • Anomaly detection for latency or cost deviations

  • PII and injection scanning with API key auto-masking

  • Model recommender for cost optimization with savings estimates

  • LLM-as-judge evaluations for response quality scoring

  • Experiments and datasets for replaying prompts across versions and models

  • User analytics for per-end-user and per-session cost, volume, and errors

  • Self-hostable with Docker under MIT license

  • Supports OpenAI, Anthropic, Gemini, Mistral, and Ollama

  • OpenTelemetry (OTLP/HTTP) ingest and export

  • Data export in CSV, JSON, or JSONL formats

  • AES-256-GCM encrypted API key storage

  1. Integrate: Change your provider baseURL to the Spanlens proxy or use the drop-in SDK.

  2. Capture Data: Spanlens automatically logs requests, costs, latency, and agent traces.

  3. Monitor Performance: View request logs, cost breakdowns, and agent traces in the dashboard.

  4. Optimize Costs: Utilize the model recommender and cost tracking features to identify savings.

  5. Enhance Security: Review PII and injection scan flags in the Security dashboard.

  6. Evaluate Models: Run experiments and use LLM-as-judge evals to compare prompt versions and models.

  • Debugging LLM Applications
  • Optimizing LLM Costs
  • Monitoring AI Performance
  • Ensuring Data Security
  • A/B Testing Prompts and Models
  • Managing Team Workloads
  • Tracking Customer Spend
  • Compliance for Regulated Workloads

Spanlens Reviews

Loading...

Popular AI Tools Like Spanlens

OpenLIT

AI Apps

OpenLIT is an open-source platform for AI engineering, providing observability for GenAI and LLM applications. It offers tracing, evaluation, and prompt management, built on…

MLOps & Model Deployment

Ranked #38 for Prompt Engineers

View Tool

AI Apps

Open-source platform for AI engineering, providing observability for GenAI and LLM applications. It offers tracing, evaluation, and prompt management, built on…OpenLIT is an open-source platform for AI engineering, providing observability for GenAI and LLM applications. It offers tracing, evaluation, and prompt management, built on…

MLOps & Model Deployment
Ranked #38 for Prompt Engineers

Auriko

AI Apps

Aurikо is an AI control plane for LLM inference, offering a model gateway, intelligent routing, observability, and FinOps in a single platform. It enables users to optimize costs…

AI DevOps & Cloud Tools
View Tool

AI Apps

Aurikо is an AI control plane for LLM inference, offering a model gateway, intelligent routing, observability, and FinOps in a single platform. It enables users to optimize costs…

AI DevOps & Cloud Tools
See the Top 250 AI Apps

telemetry.dev is an LLM observability platform built on OpenTelemetry, designed for AI applications and agents. It traces model calls, tool steps, and retrievals, allowing users…

MLOps & Model Deployment

Ranked #146 in MLOps & Model Deployment

View Tool

LLM observability platform built on OpenTelemetry, designed for AI applications and agents. It traces model calls, tool steps, and retrievals, allowing users…telemetry.dev is an LLM observability platform built on OpenTelemetry, designed for AI applications and agents. It traces model calls, tool steps, and retrievals, allowing users…

MLOps & Model Deployment
Ranked #146 in MLOps & Model Deployment

Opik is an open-source AI observability platform that assists developers in testing, shipping, and continuously improving agentic systems. It provides tools for evaluating and…

MLOps & Model Deployment
View Tool

Open-source AI observability platform that assists developers in testing, shipping, and continuously improving agentic systems. It provides tools for evaluating and…Opik is an open-source AI observability platform that assists developers in testing, shipping, and continuously improving agentic systems. It provides tools for evaluating and…

MLOps & Model Deployment
See the Top 250 AI Apps

Middleware

AI Apps

Middleware is a full-stack, OpenTelemetry-native observability platform whose AI SRE agent, OpsAI, detects, diagnoses, and helps resolve production issues across infrastructure,…

AI DevOps & Cloud Tools

Ranked #81 in AI DevOps & Cloud Tools

View Tool

AI Apps

Full-stack, OpenTelemetry-native observability platform whose AI SRE agent, OpsAI, detects, diagnoses, and helps resolve production issues across infrastructure,…Middleware is a full-stack, OpenTelemetry-native observability platform whose AI SRE agent, OpsAI, detects, diagnoses, and helps resolve production issues across infrastructure,…

AI DevOps & Cloud Tools
Ranked #81 in AI DevOps & Cloud Tools

Vantage AI Workflows optimizes AI infrastructure by monitoring and integrating with existing workflows. It provides tools for AI-driven cost analysis, enabling efficient resource…

AI DevOps & Cloud ToolsFinance & Banking
View Tool

Optimizes AI infrastructure by monitoring and integrating with existing workflows. It provides tools for AI-driven cost analysis, enabling efficient resource…Vantage AI Workflows optimizes AI infrastructure by monitoring and integrating with existing workflows. It provides tools for AI-driven cost analysis, enabling efficient resource…

AI DevOps & Cloud ToolsFinance & Banking
See the Top 250 AI Apps

OpenObserve is an open-source observability platform designed for logs, metrics, and traces. Built in Rust, it offers high-performance monitoring with 140x lower storage costs,…

AI DevOps & Cloud Tools

Ranked #57 for Debugging code

View Tool

Open-source observability platform designed for logs, metrics, and traces. Built in Rust, it offers high-performance monitoring with 140x lower storage costs,…OpenObserve is an open-source observability platform designed for logs, metrics, and traces. Built in Rust, it offers high-performance monitoring with 140x lower storage costs,…

AI DevOps & Cloud Tools
Ranked #57 for Debugging code

Langtrace

AI Apps

Langtrace is an open-source observability and evaluation platform designed to help developers transform AI prototypes into enterprise-grade products. It provides insights into AI…

MLOps & Model Deployment

Ranked #111 in MLOps & Model Deployment

View Tool

AI Apps

Open-source observability and evaluation platform designed to help developers transform AI prototypes into enterprise-grade products. It provides insights into AI…Langtrace is an open-source observability and evaluation platform designed to help developers transform AI prototypes into enterprise-grade products. It provides insights into AI…

MLOps & Model Deployment
Ranked #111 in MLOps & Model Deployment
1 of 8