...
Suggested design
New public API entities
- ServiceCallContext - immutable map of custom parameters to be implicitly passed to the service.
- ServiceCallInterceptor ServiceCallInterceptor - intercepts service method calls.
- ServiceInterceptorContext - extended mutable version of caller context (interceptor obtains method call parameters from it and can use it to update the caller context).
- ServiceInterceptException - unchecked exception that is used to highlight the exception that occurred during method interception (not execution).
...
{"serverDuration": 138, "requestCorrelationId": "c97b0ebc874822c6"}