forked from phoenix/litellm-mirror
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:
parent
d889bce0c4
commit
1e2ba3e045
2 changed files with 12 additions and 1 deletions
1
docs/my-website/.gitignore
vendored
1
docs/my-website/.gitignore
vendored
|
@ -18,3 +18,4 @@
|
|||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
yarn.lock
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue