Extending timers - could some more methods in MetricRegistry be made protected?

15 views
Skip to first unread message

Niels Ull Harremoës

unread,
Mar 2, 2016, 4:58:18 AM3/2/16
to metrics-user
Hi!

I would like to extend the timers and meters to be able to report the time (java.util.Date()) of the latest event.
So I extended MetricRegistry,overriding timer(name) and meter(name)  

It seems unnecessarily complicated due to MetricRegistry.getOrAdd and MetricBuilder being private?

If these were protected instead, I would have copy/pasted a lot less code.

Regards, Niels


Reply all
Reply to author
Forward
0 new messages