How to log the time taken by methods in Springframework?

前端 未结 5 1707
时光说笑
时光说笑 2021-01-31 06:20

Is it possible in springframework to log the time taken by methods [ selective | all ] automatically. By automatically i mean, i don\'t want to go to each method and write the l

5条回答
  •  野的像风
    2021-01-31 07:15

    You can take a look at stagemonitor. It is a open source java web application performance monitor. It captures response time metrics, JVM metrics, request details (including a call stack captured by the request profiler) and more. The overhead is very low.

    Optionally, you can use the great timeseries database graphite with it to store a long history of datapoints that you can look at with fancy dashboards.

    Example Screenshot: enter image description here

    Take a look at the project website to see more screenshots, feature descriptions and documentation.

    Note: I am the developer of stagemonitor

提交回复
热议问题