To log custom data traces to the Phoenix Cloud app, use the `px.Client().log_traces(trace_dataset, project_name="your-project")` method, where `trace_dataset` is your trace data and `project_name` specifies the destination project. Make sure to set the `PHOENIX_COLLECTOR_ENDPOINT` and `PHOENIX_CLIENT_HEADERS` (with your API key) environment variables to point to the Phoenix Cloud endpoint before logging traces. See <https://arize-ai.slack.com/archives/C04R3GXC8HK/p1714371773.623639|this example> and <https://github.com/Arize-ai/phoenix/blob/main/docs/evaluation/how-to-evals/evaluating-phoenix-traces.md|docs> for details.
Would you like more detail or a code example?
Sources:
- <https://arize-ai.slack.com/archives/C04R3GXC8HK/p1714371773.623639|Slack: log_traces method and project_name>
- <https://github.com/Arize-ai/phoenix/blob/main/docs/evaluation/how-to-evals/evaluating-phoenix-traces.md|Evaluating Phoenix Traces (setup and logging)>