From 05514681cc7069a51e150ceef4860b7252e3f4a6 Mon Sep 17 00:00:00 2001 From: Cole McIntosh Date: Mon, 16 Jun 2025 11:48:44 -0600 Subject: [PATCH] docs: remove sections from Elasticsearch logging tutorial --- .../docs/tutorials/elasticsearch_logging.md | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/docs/my-website/docs/tutorials/elasticsearch_logging.md b/docs/my-website/docs/tutorials/elasticsearch_logging.md index 14393c7bf61..30528bcf0fe 100644 --- a/docs/my-website/docs/tutorials/elasticsearch_logging.md +++ b/docs/my-website/docs/tutorials/elasticsearch_logging.md @@ -271,40 +271,4 @@ curl -X GET "localhost:9200/_search" -H "Content-Type: application/json" -d '{ } } }' -``` - -## What's Logged - -LiteLLM sends OpenTelemetry traces for every request including: - -- **Trace & Span Data**: Structured trace information with parent-child relationships -- **Attributes**: Model, token usage, costs, response times, user metadata -- **Events**: Request input, response output, and error information -- **Resource Info**: Service name, version, and deployment information -- **Timing**: Precise start/end times and duration measurements - -The data follows OpenTelemetry semantic conventions for better standardization and tooling compatibility. - -## Advanced Configuration - -**Custom span attributes:** -```python -import litellm - -# Add custom metadata to traces -response = litellm.completion( - model="gpt-4.1", - messages=[{"role": "user", "content": "Hello!"}], - metadata={ - "user_id": "user123", - "session_id": "session456", - "environment": "production" - } -) -``` - -**Debug OTEL logging:** -```bash -export DEBUG_OTEL=true -litellm --config config.yaml --detailed_debug ``` \ No newline at end of file