The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
docs control langfuse specific tags
Ishaan Jaff81680d6b1ade
diff --git a/docs/my-website/docs/proxy/logging.md b/docs/my-website/docs/proxy/logging.mdindex c4098bf75f2..a6868d4005f 100644--- a/docs/my-website/docs/proxy/logging.md+++ b/docs/my-website/docs/proxy/logging.md@@ -278,6 +278,42 @@ curl --location 'http://0.0.0.0:4000/chat/completions' \}'```++### LiteLLM-specific Tags on Langfuse - `cache_hit`, `cache_key`++Use this if you want to control which LiteLLM-specific fields are logged as tags by the LiteLLM proxy. By default LiteLLM Proxy logs no LiteLLM-specific fields++| LiteLLM specific field | Description | Example Value |+|------------------------|-------------------------------------------------------|------------------------------------------------|+| `cache_hit` | Indicates whether a cache hit occured (True) or not (False) | `true`, `false` |+| `cache_key` | The Cache key used for this request | `d2b758c****`|+| `proxy_base_url` | The base URL for the proxy server, the value of env var `PROXY_BASE_URL` on your server | `https://proxy.example.com`|+| `user_api_key_alias` | An alias for the LiteLLM Virtual Key.| `prod-app1` |+| `user_api_key_user_id` | The unique ID associated with a user's API key. | `user_123`, `user_456` |+| `user_api_key_user_email` | The email associated with a user's API key. | `[email protected]`, `[email protected]` |+| `user_api_key_team_alias` | An alias for a team associated with an API key. | `team_alpha`, `dev_team` |+++**Usage**++Specify `langfuse_default_tags` to control what litellm fields get logged on Langfuse++Example config.yaml+```yaml+model_list:+ - model_name: gpt-4+ litellm_params:+ model: openai/fake+ api_key: fake-key+ api_base: https://exampleopenaiendpoint-production.up.railway.app/++litellm_settings:+ success_callback: ["langfuse"]++ # 👇 Key Change+ langfuse_default_tags: ["cache_hit", "cache_key", "proxy_base_url", "user_api_key_alias", "user_api_key_user_id", "user_api_key_user_email", "user_api_key_team_alias", "semantic-similarity", "proxy_base_url"]+```+### 🔧 Debugging - Viewing RAW CURL sent from LiteLLM to providerUse this when you want to view the RAW curl request sent from LiteLLM to the LLM API