Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

[DOCS] Add Langtrace to Integrations list #234

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/integrations/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ We welcome pull requests to add new Integrations to the community.
| [🔭 OpenLLMetry](/integrations/openllmetry) | ✅ | :soon: |
| [🎈 Streamlit](/integrations/streamlit) | ✅ | ➖ |
| [💙 Haystack](/integrations/haystack) | ✅ | ➖ |

| [📊 Langtrace](/integrations/langtrace) | ✅ | ✅ |
*Coming soon* - integrations with LangSmith, JinaAI, and more.

***
Expand Down
56 changes: 56 additions & 0 deletions docs/integrations/langtrace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
slug: /integrations/langtrace
title: 📊 Langtrace
---

[Langtrace](www.langtrace.ai) enables developers to trace, evaluate, manage prompts and datasets, and debug issues related to an LLM application’s performance. It creates open telemetry standard traces for Chroma which helps with observability and works with any observability client.

Key features include:

- Detailed traces and logs
- Real-time monitoring of key metrics including accuracy, evaluations, usage, costs, and latency
- Integrations for the most popular frameworks, vector databases, and LLMs including Langchain, LllamaIndex, OpenAI, Anthropic, Pinecone, Chroma and Cohere.
- Self-hosted or using Langtrace cloud

| [Docs](https://docs.langtrace.ai/introduction) | [Github](https://github.com/Scale3-Labs/langtrace) |

### Installation

- Signup for [Langtrace cloud](https://langtrace.ai/signup) to get an API key

#### Install the SDK on your project:

- **Python**: Install the Langtrace SDK using pip

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

- **Typescript**: Install the Langtrace SDK using npm

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

#### Initialize the SDK in your project:

- **Typescript**:

```typescript Typescript
// Must precede any llm module imports
import * as Langtrace from "@langtrase/typescript-sdk";

Langtrace.init({ api_key: "<LANGTRACE_API_KEY>" });
```

- **Python**:

```python Python
from langtrace_python_sdk import langtrace

langtrace.init(api_key = '<LANGTRACE_API_KEY>')
```

### Configuration

Langtrace is adaptable and can be configured to transmit traces to any observability platform compatible with OpenTelemetry, such as Datadog, Honeycomb, Dynatrace, New Relic, among others. For more details on setup and options, consult the [Langtrace docs](https://www.langtrace.ai).
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const sidebars = {
'integrations/openllmetry',
'integrations/streamlit',
'integrations/haystack',
'integrations/langtrace',
],
},
],
Expand Down