From 1e2ba3e04563743615ea16ce95604331b9d34909 Mon Sep 17 00:00:00 2001 From: Dinmukhamed Mailibay <47117969+dinmukhamedm@users.noreply.github.com> Date: Mon, 11 Nov 2024 12:15:47 -0800 Subject: [PATCH] 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 --- docs/my-website/.gitignore | 1 + .../docs/observability/opentelemetry_integration.md | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/my-website/.gitignore b/docs/my-website/.gitignore index b2d6de306..4d8604572 100644 --- a/docs/my-website/.gitignore +++ b/docs/my-website/.gitignore @@ -18,3 +18,4 @@ npm-debug.log* yarn-debug.log* yarn-error.log* +yarn.lock diff --git a/docs/my-website/docs/observability/opentelemetry_integration.md b/docs/my-website/docs/observability/opentelemetry_integration.md index ba5ef2ff8..218064b3d 100644 --- a/docs/my-website/docs/observability/opentelemetry_integration.md +++ b/docs/my-website/docs/observability/opentelemetry_integration.md @@ -49,9 +49,19 @@ OTEL_ENDPOINT="http://0.0.0.0:4317" + + +```shell +OTEL_EXPORTER="otlp_grpc" +OTEL_ENDPOINT="https://api.lmnr.ai:8443" +OTEL_HEADERS="authorization=Bearer " +``` + + + -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"]