Add docs to export logs to Laminar (#6674)

* Add docs to export logs to Laminar

* minor fix: newline at end of file

* place laminar after http and grpc
This commit is contained in:
Dinmukhamed Mailibay 2024-11-11 12:15:47 -08:00 committed by GitHub
parent d889bce0c4
commit 1e2ba3e045
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View file

@ -18,3 +18,4 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock

View file

@ -49,9 +49,19 @@ OTEL_ENDPOINT="http://0.0.0.0:4317"
</TabItem>
<TabItem value="laminar" label="Log to Laminar">
```shell
OTEL_EXPORTER="otlp_grpc"
OTEL_ENDPOINT="https://api.lmnr.ai:8443"
OTEL_HEADERS="authorization=Bearer <project-api-key>"
```
</TabItem>
</Tabs>
Use just 2 lines of code, to instantly log your LLM responses **across all providers** with OpenTelemetry:
Use just 1 line of code, to instantly log your LLM responses **across all providers** with OpenTelemetry:
```python
litellm.callbacks = ["otel"]