Arize-ai / phoenix

AI Observability & Evaluation
https://docs.arize.com/phoenix
Other
3.57k stars 266 forks source link

[BUG] Local setup not working #3407

Open micuentadecasa opened 4 months ago

micuentadecasa commented 4 months ago

Hi,

I´m using Docker version of Arize Phoenix, I can see the dashboard at http://localhost:6006/projects/UHJvamVjdDox, so there is no issue running it, but I´m not being able to send any data to it, for example, if I try this:

curl -X POST "http://127.0.0.1:6006/v1/traces" -H "Content-Type: application/json" -d '{"query": "What is Arize Phoenix?", "extracted_answer": "Arize Phoenix is a machine learning observability platform.", "generated_answer": "Arize Phoenix is a platform that helps in observing and managing machine learning models."}'

I receive this:

Unsupported content type: application/json

and I see this in the logs

INFO: 172.17.0.1:55866 - "POST /v1/traces HTTP/1.1" 415 Unsupported Media Type

Regards.

mikeldking commented 4 months ago

Hey @micuentadecasa Thanks for trying out Phoenix! Phoenix is an OpenTelemetry backend and so the /v1/traces endpoint doesn't take arbitrary JSON. It only takes OTLP proto payloads. It might make a bit more sense if you try out one of our tutorials. https://docs.arize.com/phoenix/notebooks

Let us know if you have any further questions!