Implementing your own configurable monitoring interceptor