---
title: "langtrace"
type: "tool"
slug: "scale3-labs-langtrace"
canonical_url: "https://www.graphcanon.com/tools/scale3-labs-langtrace"
github_url: "https://github.com/Scale3-Labs/langtrace"
homepage_url: "https://langtrace.ai"
stars: 1212
forks: 124
primary_language: "TypeScript"
license: "AGPL-3.0"
categories: ["evaluation-observability", "inference-serving"]
tags: ["llmops", "llm-framework", "evaluations", "llm", "ai", "datasets", "gpt", "langchain"]
updated_at: "2026-07-07T18:47:38.400973+00:00"
---

# langtrace

> Langtrace 🔍 - Open Telemetry based observability for LLM applications

Langtrace provides real-time tracing, evaluations, and metrics for Large Language Models (LLMs) and their frameworks, integrating through TypeScript and Python SDKs.

## Facts

- Repository: https://github.com/Scale3-Labs/langtrace
- Homepage: https://langtrace.ai
- Stars: 1,212 · Forks: 124 · Open issues: 1 · Watchers: 19
- Primary language: TypeScript
- License: AGPL-3.0
- Last pushed: 2025-11-17T15:08:48+00:00

## Categories

- [Evaluation & Observability](/categories/evaluation-observability.md)
- [Inference & Serving](/categories/inference-serving.md)

## Tags

llmops, llm-framework, evaluations, llm, ai, datasets, gpt, langchain

## Related tools

- [langflow](/tools/langflow-ai-langflow.md) - Langflow is a powerful platform for building and deploying AI-powered agents and workflows. (★ 151,298)
- [open-webui](/tools/open-webui-open-webui.md) - User-friendly AI Interface (Supports Ollama, OpenAI API, ...) (★ 144,575)
- [vllm](/tools/vllm-project-vllm.md) - A high-throughput and memory-efficient inference and serving engine for LLMs (★ 85,612)
- [rtk](/tools/rtk-ai-rtk.md) - CLI proxy reducing LLM token consumption by 60-90% (★ 69,253)
- [unsloth](/tools/unslothai-unsloth.md) - Unsloth Studio is a web UI for training and running open models locally. (★ 67,883)
- [anything-llm](/tools/mintplex-labs-anything-llm.md) - Stop renting your intelligence. Own it with AnythingLLM. (★ 62,759)
- [worldmonitor](/tools/koala73-worldmonitor.md) - Real-time global intelligence dashboard (★ 61,516)
- [TrendRadar](/tools/sansan0-trendradar.md) - 告别信息过载，你的AI舆情监控助手与热点筛选工具 (★ 60,330)

## README (excerpt)

```text
<div align="center">
  <h1>
    <img src="https://github.com/Scale3-Labs/langtrace/assets/105607645/6825158c-39bb-4270-b1f9-446c36c066ee" alt="Langtrace" width="400"/>
    <br/>
    <a href="https://www.langtrace.ai">Langtrace</a>
  </h1>
  <h3>Open Source Observability for LLM Applications</h3>

  
  
  
  
  
  
  
  
  
  
</div>

---

## 📚 Table of Contents
- [✨ Features](#-features)
- [🚀 Quick Start](#-quick-start)
- [🔗 Integrations](#-supported-integrations)
- [🌐 Getting Started](#-getting-started)
- [🏠 Self Hosting](#-langtrace-self-hosted)
- [📐 Architecture](#-langtrace-system-architecture)
- [🤝 Contributing](#-contributions)
- [🔒 Security](#-security)
- [❓ FAQ](#-frequently-asked-questions)
- [👥 Contributors](#-contributors)
- [📜 License](#-license)

Langtrace is an open source observability software which lets you capture, debug and analyze traces and metrics from all your applications that leverages LLM APIs, Vector Databases and LLM based Frameworks.



## ✨ Features

- 📊 **Open Telemetry Support**: Built on OTEL standards for comprehensive tracing
- 🔄 **Real-time Monitoring**: Track LLM API calls, vector operations, and framework usage
- 🎯 **Performance Insights**: Analyze latency, costs, and usage patterns
- 🔍 **Debug Tools**: Trace and debug your LLM application workflows
- 📈 **Analytics**: Get detailed metrics and visualizations
- 🏠 **Self-hosting Option**: Deploy on your own infrastructure

## 🚀 Quick Start

```bash
# For TypeScript/JavaScript
npm i @langtrase/typescript-sdk

# For Python
pip install langtrace-python-sdk
```

Initialize in your code:
```typescript
// TypeScript
import * as Langtrace from '@langtrase/typescript-sdk'
Langtrace.init({ api_key: '<your_api_key>' }) // Get your API key at langtrace.ai
```
```python
# Python
from langtrace_python_sdk import langtrace
langtrace.init(api_key='<your_api_key>') # Get your API key at langtrace.ai
```

For detailed setup instructions, see [Getting Started](#-getting-started).

## 📊 Open Telemetry Support

The traces generated by Langtrace adhere to [Open Telemetry Standards(OTEL)](https://opentelemetry.io/docs/concepts/signals/traces/). We are developing [semantic conventions](https://opentelemetry.io/docs/concepts/semantic-conventions/) for the traces generated by this project. You can checkout the current definitions in [this repository](https://github.com/Scale3-Labs/langtrace-trace-attributes/tree/main/schemas). Note: This is an ongoing development and we encourage you to get involved and welcome your feedback.

---

## 📦 SDK Repositories

- [Langtrace Typescript SDK](https://github.com/Scale3-Labs/langtrace-typescript-sdk)
- [Langtrace Python SDK](https://github.com/Scale3-Labs/langtrace-python-sdk)
- [Semantic Span Attributes](https://github.com/Scale3-Labs/langtrace-trace-attributes)

---

## 🚀 Getting Started

### Langtrace Cloud ☁️

To use the managed SaaS version of Langtrace, follow the steps below:

1. Sign up by going to [this link](https://langtrace.ai).
2. Create a new Project after signing up. Projects are containers for storing traces and metrics generated by your application. If you have only one application, creating 1 project will do.
3. Generate an API key by going inside the project.
4. In your application, install the Langtrace SDK and initialize it with the API key you generated in the step 3.
5. The code for installing and setting up the SDK is shown below:

###  If your application is built using typescript/javascript

```typescript
npm i @langtrase/typescript-sdk
```

```typescript
import * as Langtrace from '@langtrase/typescript-sdk' // Must precede any llm module imports
Langtrace.init({ api_key: <your_api_key> })
```

OR

```typescript
import * as Langtrace from "@langtrase/typescript-sdk"; // Must precede any llm module imports
LangTrace.init(); // LANGTRACE_API_KEY as an ENVIRONMENT variable
```

### If your application is built using python

```python
pip install langtrace-python-sdk
```

```python
from
```

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/tools/scale3-labs-langtrace`](/api/graphcanon/tools/scale3-labs-langtrace)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
