Yes.
The only difference is as below:
working:
with arize-phoenix~=4.35.0
import phoenix as px
from phoenix.trace.openai import OpenAIInstrumentor
# Initialize OpenAI auto-instrumentation
OpenAIInstrumentor().instrument()
session = px.launch_app()
Faulty:
with latest arize-phoenix arize-phoenix-otel andopeninference-instrumentation-litellm
import os
from phoenix.otel import register
# Add Phoenix API Key for tracing
PHOENIX_API_KEY = "88dd..."
os.environ["PHOENIX_CLIENT_HEADERS"] = f"api_key={PHOENIX_API_KEY}"
# configure the Phoenix tracer
tracer_provider = register(
project_name="my-llm-app",
endpoint="https://app.phoenix.arize.com/v1/traces",
)
from openinference.instrumentation.litellm import LiteLLMInstrumentor
LiteLLMInstrumentor().instrument(tracer_provider=tracer_provider)