langtrace  by Scale3-Labs

Observability tool for LLM applications

Created 1 year ago
1,028 stars

Top 36.5% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

Langtrace provides end-to-end observability for LLM applications, enabling developers to trace, debug, and analyze their AI workflows. It supports real-time monitoring, performance insights, and detailed analytics, integrating with popular LLM providers, vector databases, and frameworks.

How It Works

Langtrace is built on OpenTelemetry (OTEL) standards, ensuring comprehensive and interoperable tracing. It captures data from LLM API calls, vector database operations, and framework interactions, providing a unified view of application performance. The system uses Next.js for its frontend and APIs, with PostgreSQL for metadata and ClickHouse for storing trace data, offering both a managed SaaS and a self-hostable option.

Quick Start & Requirements

  • TypeScript/JavaScript: npm i @langtrase/typescript-sdk
  • Python: pip install langtrace-python-sdk
  • Initialization requires an API key for the SaaS version or can use an environment variable.
  • Self-hosting requires Docker and Docker Compose.
  • Official documentation: https://langtrace.ai/

Highlighted Details

  • OpenTelemetry compliant tracing.
  • Real-time monitoring of LLM API calls and vector operations.
  • Supports numerous LLM providers (OpenAI, Anthropic, Cohere, Gemini, etc.) and vector databases (Pinecone, ChromaDB, Qdrant, etc.).
  • Python SDK has broader framework support (Langchain, LlamaIndex, CrewAI, etc.) than the TypeScript SDK.

Maintenance & Community

  • Active development status.
  • Community engagement via Slack (link not provided in README, but implied by "join our Slack workspace").
  • Feature requests and issues can be raised on GitHub.

Licensing & Compatibility

  • The Langtrace application (repository) is licensed under AGPL-3.0.
  • Langtrace SDKs are licensed under Apache 2.0.
  • AGPL-3.0 has copyleft provisions that may affect commercial use or linking with closed-source applications.

Limitations & Caveats

The TypeScript SDK has limited support for LLM frameworks compared to the Python SDK. The AGPL-3.0 license for the core application may impose significant restrictions on commercial use and integration into proprietary systems.

Health Check
Last Commit

4 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
2
Star History
20 stars in the last 30 days

Explore Similar Projects

Starred by Gregor Zunic Gregor Zunic(Cofounder of Browser Use), Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research), and
14 more.

openllmetry by traceloop

0.4%
6k
Open-source observability SDK for LLM applications
Created 2 years ago
Updated 14 hours ago
Starred by Luis Capelo Luis Capelo(Cofounder of Lightning AI), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
6 more.

opik by comet-ml

1.7%
14k
Open-source LLM evaluation framework for RAG, agents, and more
Created 2 years ago
Updated 14 hours ago
Feedback? Help us improve.