Class ServiceObservationContext

All Implemented Interfaces:
Observation.ContextView, ResponseContext<RequestLog>

@UnstableApi public final class ServiceObservationContext extends RequestReplyReceiverContext<HttpRequest,RequestLog>
A Observation.Context which may be used in conjunction with ObservationService to implement custom ObservationConventions or ObservationHandlers.

 ObservationConvention<ServiceObservationContext> convention = ...
 Server.builder()
       .decorator(ObservationService.newDecorator(registry, convention))
 ...