Class HttpRequestsObservationContext
java.lang.Object
io.micrometer.observation.Observation.Context
io.micrometer.observation.transport.ReceiverContext<C>
io.micrometer.observation.transport.RequestReplyReceiverContext<HttpServletRequest,HttpServletResponse>
org.springframework.web.observation.HttpRequestsObservationContext
- All Implemented Interfaces:
io.micrometer.observation.Observation.ContextView
,io.micrometer.observation.transport.ResponseContext<HttpServletResponse>
public class HttpRequestsObservationContext
extends io.micrometer.observation.transport.RequestReplyReceiverContext<HttpServletRequest,HttpServletResponse>
Context that holds information for metadata collection during observations for Servlet web application.
This context also extends RequestReplyReceiverContext
for propagating
tracing information with the HTTP server exchange.
- Since:
- 6.0
- Author:
- Brian Clozel
-
Constructor Summary
ConstructorDescriptionHttpRequestsObservationContext
(HttpServletRequest request, HttpServletResponse response) -
Method Summary
Methods inherited from class io.micrometer.observation.transport.RequestReplyReceiverContext
getResponse, setResponse
Methods inherited from class io.micrometer.observation.transport.ReceiverContext
getCarrier, getGetter, getKind, getRemoteServiceName, setCarrier, setRemoteServiceName
Methods inherited from class io.micrometer.observation.Observation.Context
addHighCardinalityKeyValue, 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
-
HttpRequestsObservationContext
-
-
Method Details
-
getPathPattern
-
setPathPattern
-