Class ServiceObservationContext
java.lang.Object
io.micrometer.observation.Observation.Context
io.micrometer.observation.transport.ReceiverContext<C>
io.micrometer.observation.transport.RequestReplyReceiverContext<HttpRequest,RequestLog>
com.linecorp.armeria.server.observation.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 ObservationConvention
s or ObservationHandler
s.
ObservationConvention<ServiceObservationContext> convention = ...
Server.builder()
.decorator(ObservationService.newDecorator(registry, convention))
...
-
Method Summary
Modifier and TypeMethodDescriptionTheHttpRequest
associated with thisObservation.Context
.TheServiceRequestContext
associated with thisObservation.Context
.toString()
Methods inherited from class io.micrometer.observation.transport.RequestReplyReceiverContext
getResponse, setResponse
Methods inherited from class io.micrometer.observation.transport.ReceiverContext
getCarrier, getGetter, getKind, getRemoteServiceAddress, getRemoteServiceName, setCarrier, setRemoteServiceAddress, setRemoteServiceName
Methods inherited from class io.micrometer.observation.Observation.Context
addHighCardinalityKeyValue, addHighCardinalityKeyValues, addLowCardinalityKeyValue, addLowCardinalityKeyValues, clear, computeIfAbsent, containsKey, get, getAllKeyValues, getContextualName, getError, getHighCardinalityKeyValue, getHighCardinalityKeyValues, getLowCardinalityKeyValue, getLowCardinalityKeyValues, getName, getOrDefault, getParentObservation, getRequired, put, remove, removeHighCardinalityKeyValue, removeHighCardinalityKeyValues, removeLowCardinalityKeyValue, removeLowCardinalityKeyValues, setContextualName, setError, setName, setParentObservation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.micrometer.observation.Observation.ContextView
getOrDefault
-
Method Details
-
requestContext
TheServiceRequestContext
associated with thisObservation.Context
. -
httpRequest
TheHttpRequest
associated with thisObservation.Context
. -
toString
- Overrides:
toString
in classObservation.Context
-