Class ClientRequestObservationContext
java.lang.Object
io.micrometer.observation.Observation.Context
io.micrometer.observation.transport.SenderContext<C>
io.micrometer.observation.transport.RequestReplySenderContext<ClientRequest,ClientResponse>
 
org.springframework.web.reactive.function.client.ClientRequestObservationContext
- All Implemented Interfaces:
- io.micrometer.observation.Observation.ContextView,- io.micrometer.observation.transport.ResponseContext<ClientResponse>
public class ClientRequestObservationContext
extends io.micrometer.observation.transport.RequestReplySenderContext<ClientRequest,ClientResponse> 
Context that holds information for metadata collection
 during the 
HTTP client exchange observations.- Since:
- 6.0
- Author:
- Brian Clozel
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturn the URI template used for the current client exchange,nullif none was used.booleanWhether the client aborted the current HTTP exchange before receiving any response.voidsetUriTemplate(String uriTemplate) Set the URI template used for the current client exchange.Methods inherited from class io.micrometer.observation.transport.RequestReplySenderContextgetResponse, setResponseMethods inherited from class io.micrometer.observation.transport.SenderContextgetCarrier, getKind, getRemoteServiceName, getSetter, setCarrier, setRemoteServiceNameMethods inherited from class io.micrometer.observation.Observation.ContextaddHighCardinalityKeyValue, addHighCardinalityKeyValues, addLowCardinalityKeyValue, addLowCardinalityKeyValues, clear, computeIfAbsent, containsKey, get, getAllKeyValues, getContextualName, getError, getHighCardinalityKeyValues, getLowCardinalityKeyValues, getName, getOrDefault, getParentObservation, getRequired, put, remove, setContextualName, setError, setName, setParentObservation, toString
- 
Constructor Details- 
ClientRequestObservationContextpublic ClientRequestObservationContext()
 
- 
- 
Method Details- 
getUriTemplateReturn the URI template used for the current client exchange,nullif none was used.
- 
setUriTemplateSet the URI template used for the current client exchange.
- 
isAbortedpublic boolean isAborted()Whether the client aborted the current HTTP exchange before receiving any response.- Returns:
- whether the exchange has been aborted
 
 
-