Codahale Metrics: using @Timed metrics annotation in plain Java

后端 未结 8 974
南方客
南方客 2020-12-29 03:18

I am trying to add metrics to a plain Java application using codahale metrics. I\'d like to use the @Timed annotation, but it is unclear to me which MetricRegistry it uses,

8条回答
  •  执笔经年
    2020-12-29 03:53

    this simple/right-to-the-point example https://karollotkowski.wordpress.com/2015/10/19/api-endpoint-in-one-minute-with-dropwizard/ just showed it only need the annotation

提交回复
热议问题