Last updated
Last updated
Create an account on the
Grab your API key from the "Keys" section of the site
To collect traces from your application, you must configure an OpenTelemetry TracerProvider to send traces to Phoenix. The register
utility from the phoenix.otel
module streamlines this process.
Connect your application to your cloud instance using:
Your app is now connected to Phoenix! Any OpenTelemetry traces you generate will be sent to your Phoenix instance.
First we'll import our instrumentor and the OpenAI package:
Then enable our OpenAI integration:
And finally send a request to OpenAI:
You should now see traces in Phoenix!
Let's generate some of those traces now. We'll use OpenAI in this example, but Phoenix has to choose from as well.
You can use Phoenix's open-source package to launch a local instance of Phoenix on your machine. For more info on other self-hosting options, like Docker, see
Let's generate some of those traces now. We'll use OpenAI in this example, but Phoenix has to choose from as well.
View more details on
Run on traces
Test changes to you prompts, models, and application via
Explore for Phoenix
Phoenix can be accessed via our website or self-hosted.