Hi,
I have been banging my head against the wall for the last few hours trying to add timer metrics for services, dao, etc within my app. The documentation on this is really slim and searches on the interwebs haven't exactly got me where I want to be.
So this is the scenario...
MyResource -> MyService -> MyDao
class MyResource {
@Timed
@GET
public String meth() {
myservice.doWork();
...
return "hello";
}
}
class MyService {
@Timed
public void doWork() { ... }
}
I have put up a mini sample with what I have so far. With this, the metrics are registered in the registry, but no metrics is gathered no matter what I try. I must be missing something, but can't figure out what.
My end goal is to have metrics gathered not only on the MyResource (which comes out of the box with DW), but also MyService and MyDao methods.
Please can anyone help? I'll really appreciate it.
Thanks