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: Improve documentation of phoenix logging (#10416)
user20272900605e3611fa
diff --git a/docs/my-website/docs/observability/phoenix_integration.md b/docs/my-website/docs/observability/phoenix_integration.mdindex d6974adeca6..7067a5078b6 100644--- a/docs/my-website/docs/observability/phoenix_integration.md+++ b/docs/my-website/docs/observability/phoenix_integration.md@@ -21,6 +21,9 @@ Use just 2 lines of code, to instantly log your responses **across all providersYou can also use the instrumentor option instead of the callback, which you can find [here](https://docs.arize.com/phoenix/tracing/integrations-tracing/litellm).+```bash+pip install opentelemetry-api opentelemetry-sdk opentelemetry-exporter-otlp litellm[proxy]+``````pythonlitellm.callbacks = ["arize_phoenix"]```@@ -29,14 +32,14 @@ import litellmimport osos.environ["PHOENIX_API_KEY"] = "" # Necessary only using Phoenix Cloud-os.environ["PHOENIX_COLLECTOR_HTTP_ENDPOINT"] = "" # The URL of your Phoenix OSS instance+os.environ["PHOENIX_COLLECTOR_HTTP_ENDPOINT"] = "" # The URL of your Phoenix OSS instance e.g. http://localhost:6006/v1/traces# This defaults to https://app.phoenix.arize.com/v1/traces for Phoenix Cloud# LLM API Keysos.environ['OPENAI_API_KEY']=""# set arize as a callback, litellm will send the data to arize-litellm.callbacks = ["phoenix"]+litellm.callbacks = ["arize_phoenix"]# openai callresponse = litellm.completion(