Server integration
Java and Spring Boot Monitoring
LoggerAI monitors Spring MVC, WebFlux and any servlet app. On Spring Boot 3 it starts on its own once the dependency and the key are in place.
What LoggerAI records
- Every endpoint under its route pattern (/orders/{id}): p50, p95, p99, Apdex, status codes, slow and failed requests
- Every JDBC query, so JPA and Hibernate too
- Calls made with RestTemplate, RestClient and WebClient
- Exceptions, including ones an @ExceptionHandler turned into a 5xx
- Logs at warning and above from SLF4J and Logback
- CPU, memory and disk every 30 seconds
- @Scheduled tasks and queue listeners, timed like requests
Java 17 or later, with no dependencies.
How to set it up
1. Add the dependency
<dependency> <groupId>uk.loggerai</groupId> <artifactId>loggerai-java</artifactId> <version>0.1.0</version> </dependency>2. Or with Gradle
implementation("uk.loggerai:loggerai-java:0.1.0")3. Add your key
Get your project's secret key (sk_live_...) from LoggerAI, on your project's Connect page, and set it in the environment. Without a key nothing is recorded or sent, so local development stays quiet. On Spring Boot 3 there's nothing else to do.
LOGGERAI_KEY=sk_live_... LOGGERAI_RELEASE=$GIT_SHA # optional
See every integration, or what you can do with the data in features.
Questions
- Do I need to change my Spring Boot code?
- No. With the dependency and the key it starts on its own. Requests are named by their @GetMapping pattern, and the service is named after spring.application.name.
- Does it time Hibernate queries?
- Yes. Every JDBC query is timed, so JPA and Hibernate are covered.
Try it on your own app
The Free plan is free for good, and needs no card.