HTTP client exchange observations.
The tracing context carrier is a request builder,
since the actual request is immutable. For KeyValue extraction,
the actual request should be used instead.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| public static final String | CURRENT_OBSERVATION_CONTEXT_ATTRIBUTE
Name of the request attribute holding the |
| private ClientRequest | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | ClientRequestObservationContext()
Deprecated
for removal since 6.1.2. as of 6.1.2, in favor of
ClientRequestObservationContext(ClientRequest.
Create a new Observation context for HTTP client observations. |
| public | ClientRequestObservationContext(ClientRequest.
client request builder requestCreate a new Observation context for HTTP client observations. |
| Modifier and Type | Method and Description |
|---|---|
| public static Optional | Returns: the current observation contextthe current client request request)Get the current |
| public ClientRequest | |
| public String | getUriTemplate()
Return the URI template used for the current client exchange, |
| public boolean | Returns: whether the exchange has been abortedWhether the client aborted the current HTTP exchange before receiving any response. |
| pack-priv void | setAborted(boolean
whether the exchange has been aborted aborted)Set whether the client aborted the current HTTP exchange. |
| public void | |
| private static void | |
| public void |
| aborted | back to summary |
|---|---|
| private boolean aborted | |
| CURRENT_OBSERVATION_CONTEXT_ATTRIBUTE | back to summary |
|---|---|
| public static final String CURRENT_OBSERVATION_CONTEXT_ATTRIBUTE Name of the request attribute holding the
| |
| request | back to summary |
|---|---|
| private ClientRequest request
| |
| uriTemplate | back to summary |
|---|---|
| private String uriTemplate
| |
| ClientRequestObservationContext | back to summary |
|---|---|
| public ClientRequestObservationContext()
Deprecated for removal since 6.1.2. as of 6.1.2, in favor of Create a new Observation context for HTTP client observations.
| |
| ClientRequestObservationContext | back to summary |
|---|---|
| public ClientRequestObservationContext(ClientRequest. Create a new Observation context for HTTP client observations.
| |
| findCurrent | back to summary |
|---|---|
| public static Optional Get the current
| |
| getRequest | back to summary |
|---|---|
| public ClientRequest getRequest() Return the immutable client request.
| |
| getUriTemplate | back to summary |
|---|---|
| public String getUriTemplate() Return the URI template used for the current client exchange,
| |
| isAborted | back to summary |
|---|---|
| public boolean isAborted() Whether the client aborted the current HTTP exchange before receiving any response.
| |
| setAborted | back to summary |
|---|---|
| pack-priv void setAborted(boolean aborted) Set whether the client aborted the current HTTP exchange.
| |
| setRequest | back to summary |
|---|---|
| public void setRequest(ClientRequest request) Set the client request. | |
| setRequestHeader | back to summary |
|---|---|
| private static void setRequestHeader(ClientRequest. | |
| setUriTemplate | back to summary |
|---|---|
| public void setUriTemplate(String uriTemplate) Set the URI template used for the current client exchange. | |