Send Traces from Phoenix -> Arize
Last updated
Last updated
Copyright © 2023 Arize AI, Inc
You can use Phoenix to collect traces, run evals, and perform data modifications in a notebook environment until you're ready to export data to Arize using our Python SDK.
Here's how you do it:
Enable Phoenix tracing is very similar to what we showed in the section above since it also leverages the OpenInference instrumentation. For more details, see the Phoenix Quickstart Guide to Tracing.
Your application traces should stream into the Phoenix UI as shown below
When you're ready to send your data to Arize, run the following command to export your traces from Phoenix.
This command creates a dataframe object as shown below:
If you want to get the evaluations as well attached to the spaces, run the commands below.
The dataframe can be directly sent to Arize using our Python SDK. Schema mapping is not required for OpenInference traces since Arize will automatically understand the column names from your dataframe.
To send tracing data via the Python SDK, it must be installed with extra dependencies
(Cloud import support coming soon)
The following code example shows how to send a dataframe with traces exported from Phoenix to Arize via the log_spans
method. Note that we do not need to specify any Schema.
For more in-detail demonstration, check our Colab tutorial: