Design patterns·Wrapping and composing
logging appeared around every method in the service and there is no line of your code that calls it.
Interceptor
Also calledinterception, around advice, aspect, filter
A hook that a framework runs around a call, letting cross-cutting behaviour be attached without editing the target — the mechanism behind aspect-oriented programming, servlet filters, gRPC interceptors and most annotation-driven transactions. It is a decorator that you did not write and cannot see at the call site, which is both the appeal and the cost. Debugging is where the bill arrives: the stack trace names classes nobody wrote.