add doc on redacting otel message / response

This commit is contained in:
Ishaan Jaff 2024-09-09 16:10:13 -07:00
parent 7c9591881c
commit 4592d80f43

View file

@ -744,6 +744,20 @@ curl --location 'http://0.0.0.0:4000/chat/completions' \
** 🎉 Expect to see this trace logged in your OTEL collector** ** 🎉 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` ### Context propagation across Services `Traceparent HTTP Header`
❓ Use this when you want to **pass information about the incoming request in a distributed tracing system** ❓ Use this when you want to **pass information about the incoming request in a distributed tracing system**