Prerequisites
- Java 11 or higher
- (Optional) Phoenix API key if using auth
Add Dependencies
Add the dependencies to yourbuild.gradle:
Setup Phoenix
- Self-Host
- Local
- Container
Run Phoenix on your own infrastructure, backed by PostgreSQL so traces persist beyond a single process. This is the option to reach for once Phoenix is shared across a team or environment.The self-hosting guide covers Kubernetes, Helm, Railway, AWS CloudFormation, Google Cloud Run, Azure, and Render, plus authentication and configuration.
Configuration for Phoenix Tracing
Run LangChain4j
By instrumenting your application, spans will be created whenever it is run and will be sent to the Phoenix server for collection.Observe
Once configured, your 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

