Hi there! Arize Phoenix newbie here. I installed phoenix in Azure following these instructions:
https://github.com/Arize-ai/phoenix-on-azure
I have an instance running in the cloud and can see the default project with 0 traces in it. I want to connect to that endpoint and write traces to it. But I'm having trouble communication with the instance.
I'm using this code:
import os
from openai import AzureOpenAI
from dotenv import load_dotenv
from phoenix.otel import register
from openinference.instrumentation.openai import OpenAIInstrumentor
load_dotenv()
os.environ['PHOENIX_PROJECT_NAME'] = "phoenix-test"
tracer_provider = register()
OpenAIInstrumentor().instrument(tracer_provider=tracer_provider, skip_dep_check=True)
# see https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/switching-endpoints
client = AzureOpenAI(
api_key=os.getenv("AZURE_OPENAI_API_KEY"),
api_version="2024-02-15-preview",
azure_endpoint=os.getenv("AZURE_OPENAI_ENDPOINT")
)
response = client.chat.completions.create(
messages=[
{
"role": "system",
"content": "You are a helpful assistant.",
},
{
"role": "user",
"content": "Write a poem about a phoenix."
}
],
model="gpt-4o-2024-08-06",
temperature=0,
max_tokens=200
)
and have set my .env variable to PHOENIX_COLLECTOR_ENDPOINT = "https://abcde@arize-phoenix-abcde-app.bluedesert-abcde.germanywestcentral.azurecontainerapps.io" (dummy data here).
However, I get the following errors:
Transient error StatusCode.DEADLINE_EXCEEDED ...
Transient error StatusCode.UNAVAILABLE encountered while exporting traces to arize-phoenix- ...
What part am I missing?