Trace a Deployed App
Once you are done iterating in a notebook, you can get the same observability in production
Last updated
Once you are done iterating in a notebook, you can get the same observability in production
Last updated
The same tracing capabilities you used during your experimentation in the notebook is available when you deploy your application. As illustrated in the image above, Phoenix is made up of tracing capabilities as well as collecting capabilities. When you deploy your application, you only need to bring along the instrumentation parts. Let's take the following code in the notebook and look at how this might look on the server. BEFORE
AFTER
Note that you DO NOT need to install Phoenix to collect traces. All you need is OpenInference instrumentation and OpenTelemetry. The dependancies would look like:
Note that instrumentation MUST be initialized BEFORE you use initialize any library or package that you are instrumenting.
Once you've made the appropriate instrumentation, you can deploy phoenix and the traces will be exported to the phoenix server (collector). For fully working Python examples, check out our example apps
Arize is an enterprise grade observability platform that supports the same capabilities as Phoenix. Note that you can export your traces to both Phoenix and Arize if you so desire (simply add two exporters). See the Arize documentation for details.