Skip to content

Spring Boot

Spring Boot 3 Observability: monitor Application on the method level

Observe using ObservedAspect with logging method arguments

cover.png

Observability is one of the significant improvements in the Spring Boot 3 (also see how I migrate to spring boot 3), they now provide an effortless, pluggable way to use annotation to observe all the logs, trace, and metrics data for our spring beans.

In this article, we will go through below topics:

  • Recap on how observability works
  • Run monitoring component (Grafana, Loki, Tempo, Prometheus) by docker-compose
  • How to implement code to observe the Application
  • How to log method arguments in ObservedAspect
  • How would data be displayed on the Grafana