Prerequisites
- Java 21 or higher
- (Optional) Phoenix API key if using Phoenix Cloud
- (Optional) Docker or Podman if using the Arconia Phoenix Dev Service
Add Dependencies
- Gradle
- Maven
Add the dependencies to your
build.gradle:Setup Phoenix
- Phoenix Dev Service
- Docker
- Phoenix Cloud
If you included the Arconia Phoenix Dev Service dependency as instructed in the previous step,
your Spring Boot application will automatically provision a Phoenix service at startup time
and connect to it. No extra code or configuration needed.The application logs will show you the URL where you can access the Phoenix AI observability platform
in your development environment.By default, traces are exported via OTLP using the HTTP/Protobuf format.For more info on using Phoenix with Arconia, see Phoenix Dev Service.
Run Spring AI with Arconia
By instrumenting your application with Arconia, spans are automatically created whenever your AI models via Spring AI are invoked and sent to the Phoenix server for collection. Arconia plugs into Spring Boot and Spring AI without any code or configuration changes.Observe
Once configured, your OpenInference traces will be automatically sent to Phoenix where you can:- Monitor Performance: Track latency, throughput, and error rates
- Analyze Usage: View token usage, model performance, and cost metrics
- Debug Issues: Trace request flows and identify bottlenecks
- Evaluate Quality: Run evaluations on your LLM outputs

