Alex, I like the idea very much, but I think we need to rethink the implementation approach to make it more generic. Passing parameter to each invocation seems dirty to me.
Val, we already have this. Please see org.apache.ignite.internal.IgniteDiagnosticAware Dmitry, what you suggest will be pretty hard to implement. I would better improve self-diagnostic system to extend list of metrics Ignite monitors. --Yakov