Mar 18, 2023
There are several problem with this solution.
If u have even a dosen of requests per sec, you will hardly see the bottleneck of the app in the log.
Cannot identify the calls caused the problem and so on.
Spring has a proper solution for measurements and tracing (mircrometer tracing). It is recommended using that.