Troubleshooting Arize Phoenix Cloud Monitoring Configuration Issues
Hi team, I'm working on setting up Arize Phoenix monitoring for our autogen-based agent service that uses websocket connections, and running into some issues with the cloud configuration - cannot see my project in the phoenix cloud dashboard.
current configuration
# This works (Local)
# Option 1: Local Phoenix
os.environ["PHOENIX_COLLECTOR_ENDPOINT"] = "http://127.0.0.1:6006"
tracer_provider = register(
project_name="thinkspace-agent-monitoring",
endpoint="http://127.0.0.1:6006/v1/traces",
auto_instrument=True
)
this doesnt work (cloud)
# Option 2: Cloud Phoenix
# if not os.getenv("PHOENIX_API_KEY"):
# raise RuntimeError("PHOENIX_API_KEY not set in environment or .env file")
# tracer_provider = register(
# project_name="thinkspace-agent-monitoring",
# endpoint="https://app.phoenix.arize.com/s/an-qi-yu/v1/traces",
# auto_instrument=True
# )
our websocket notification flow
@app.include_router(ws_chat_notification_router) # WebSocket endpoint
@app.include_router(query_router) # HTTP query endpoint
# E2E test shows local monitoring works great:
with using_session(session_id):
with tracer.start_as_current_span("e2e_test_full_flow"):
# HTTP request triggers agent
# Agent sends WebSocket notifications
# Want to see full trace in Phoenix Cloud