From 4592d80f43cc9f4c1fb85163a74c1b501cecfdae Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 9 Sep 2024 16:10:13 -0700 Subject: [PATCH] add doc on redacting otel message / response --- docs/my-website/docs/proxy/logging.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/my-website/docs/proxy/logging.md b/docs/my-website/docs/proxy/logging.md index 9492920d0..f7b650f7a 100644 --- a/docs/my-website/docs/proxy/logging.md +++ b/docs/my-website/docs/proxy/logging.md @@ -744,6 +744,20 @@ curl --location 'http://0.0.0.0:4000/chat/completions' \ ** 🎉 Expect to see this trace logged in your OTEL collector** +### Redacting Messages, Response Content from OTEL Logging + +Set `message_logging=False` for `otel`, no messages / response will be logged + +```yaml +litellm_settings: + callbacks: ["otel"] + +## 👇 Key Change +callback_settings: + otel: + message_logging: False +``` + ### Context propagation across Services `Traceparent HTTP Header` ❓ Use this when you want to **pass information about the incoming request in a distributed tracing system**