ctubbsii commented on issue #2577:
URL: https://github.com/apache/accumulo/issues/2577#issuecomment-1072839802


   If you just want timing, wrapping with trace would probably be better than 
metrics. I don't know where the dividing line is, but I imagine metrics to be 
something like ops/sec, or counts of ops, or averages, rather than simple 
timing of calls.
   
   So, the above sample code might be suitable for metrics, as a starting point 
for pushing to a metric that averages. (but don't use 
`System.currentTimeMillis()`, because that's clock time, and not suitable for 
durations).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to