Class JettyClientContext
java.lang.Object
io.micrometer.observation.Observation.Context
io.micrometer.observation.transport.SenderContext<org.eclipse.jetty.client.api.Request>
io.micrometer.observation.transport.RequestReplySenderContext<org.eclipse.jetty.client.api.Request,org.eclipse.jetty.client.api.Result>
io.micrometer.core.instrument.binder.jetty.JettyClientContext
- All Implemented Interfaces:
io.micrometer.observation.Observation.ContextView
,io.micrometer.observation.transport.ResponseContext<org.eclipse.jetty.client.api.Result>
public class JettyClientContext
extends io.micrometer.observation.transport.RequestReplySenderContext<org.eclipse.jetty.client.api.Request,org.eclipse.jetty.client.api.Result>
Context to use when instrumenting Jetty client metrics with the Observation API.
- Since:
- 1.11.0
- See Also:
-
Constructor Summary
ConstructorDescriptionJettyClientContext
(org.eclipse.jetty.client.api.Request request, BiFunction<org.eclipse.jetty.client.api.Request, org.eclipse.jetty.client.api.Result, String> uriPatternFunction) -
Method Summary
Modifier and TypeMethodDescriptionBiFunction
<org.eclipse.jetty.client.api.Request, org.eclipse.jetty.client.api.Result, String> Methods inherited from class io.micrometer.observation.transport.RequestReplySenderContext
getResponse, setResponse
Methods inherited from class io.micrometer.observation.transport.SenderContext
getCarrier, getKind, getRemoteServiceAddress, getRemoteServiceName, getSetter, 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, toString
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
-
Constructor Details
-
JettyClientContext
public JettyClientContext(org.eclipse.jetty.client.api.Request request, BiFunction<org.eclipse.jetty.client.api.Request, org.eclipse.jetty.client.api.Result, String> uriPatternFunction)
-
-
Method Details
-
getUriPatternFunction
public BiFunction<org.eclipse.jetty.client.api.Request,org.eclipse.jetty.client.api.Result, getUriPatternFunction()String>
-