What I would prefer to see is some form of a callback annotation to wrap around a static method that could be invoked on each query.  Do you think we could do that instead?

Two approaches:

1. A method that either updates the state of other metrics, or

2. A method that emits a multi-map of metrics and their new values which is consumed and updates the registry?