-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Added OpenLLMetry integration (#633)
* docs: Added OpenLLMetry docs * Apply suggestions from code review Co-authored-by: Mike Jang <[email protected]> * Update qdrant-landing/content/documentation/frameworks/openllmetry.md Co-authored-by: Mike Jang <[email protected]> --------- Co-authored-by: Mike Jang <[email protected]>
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
qdrant-landing/content/documentation/frameworks/openllmetry.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
title: OpenLLMetry | ||
weight: 2300 | ||
--- | ||
|
||
# OpenLLMetry | ||
|
||
OpenLLMetry from [Traceloop](https://www.traceloop.com/) is a set of extensions built on top of [OpenTelemetry](https://opentelemetry.io/) that gives you complete observability over your LLM application. | ||
|
||
OpenLLMetry supports instrumenting the `qdrant_client` Python library and exporting the traces to various observability platforms, as described in their [Integrations catalog](https://www.traceloop.com/docs/openllmetry/integrations/introduction#the-integrations-catalog). | ||
|
||
This page assumes you're using `qdrant-client` version 1.7.3 or above. | ||
## Usage | ||
|
||
To set up OpenLLMetry, follow these steps: | ||
|
||
1. Install the SDK: | ||
|
||
```console | ||
pip install traceloop-sdk | ||
``` | ||
|
||
1. Instantiate the SDK: | ||
|
||
```python | ||
from traceloop.sdk import Traceloop | ||
|
||
Traceloop.init() | ||
``` | ||
|
||
You're now tracing your `qdrant_client` usage with OpenLLMetry! | ||
|
||
## Without the SDK | ||
|
||
Since Traceloop provides standard OpenTelemetry instrumentations, you can use them as standalone packages. To do so, follow these steps: | ||
|
||
1. Install the package: | ||
|
||
```console | ||
pip install opentelemetry-instrumentation-qdrant | ||
``` | ||
|
||
1. Instantiate the `QdrantInstrumentor`. | ||
|
||
```python | ||
from opentelemetry.instrumentation.qdrant import QdrantInstrumentor | ||
|
||
QdrantInstrumentor().instrument() | ||
``` | ||
|
||
## Further Reading | ||
|
||
- 📚 OpenLLMetry [API reference](https://www.traceloop.com/docs/api-reference/introduction) |
Binary file added
BIN
+593 KB
qdrant-landing/static/documentation/frameworks/openllmetry-social-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.