Top Description Methods
io.micrometer.tracing.http

public Interface HttpClientHandler

Annotations
@Deprecated
Imports
io.micrometer.common.lang.Nullable, io.micrometer.tracing.Span, .TraceContext

Deprecated

scheduled for removal in 1.4.0

This API is taken from OpenZipkin Brave.

This standardizes a way to instrument http clients, particularly in a way that encourages use of portable customizations via HttpRequestParser and HttpResponseParser.

Authors
OpenZipkin Brave Authors, Marcin Grzejszczak
Since
1.0.0

Method Summary

Modifier and TypeMethod and Description
public void
handleReceive(HttpClientResponse
the HTTP response
response
,
Span
span to be ended
span
)

Deprecated as a consequence of HttpClientResponse being deprecated.
Finishes the client span after assigning it tags according to the response or error.
public Span

Returns:

client side span
handleSend
(HttpClientRequest
to inject the tracing context with
request
)

Deprecated as a consequence of HttpClientRequest being deprecated.
Starts the client span after assigning it a name and tags.
public Span

Returns:

client side span
handleSend
(HttpClientRequest
to inject the tracing context with
request
,
TraceContext
TraceContext that is to be the client side span's parent
parent
)

Deprecated as a consequence of HttpClientRequest being deprecated.
Same as handleSend(HttpClientRequest) but with an explicit parent TraceContext.

Method Detail

handleReceiveback to summary
public void handleReceive(HttpClientResponse response, Span span)

Deprecated

as a consequence of HttpClientResponse being deprecated. See corresponding docs for further information.

Finishes the client span after assigning it tags according to the response or error.

Parameters
response:HttpClientResponse

the HTTP response

span:Span

span to be ended

handleSendback to summary
public Span handleSend(HttpClientRequest request)

Deprecated

as a consequence of HttpClientRequest being deprecated. See corresponding docs for further information.

Starts the client span after assigning it a name and tags. This injects the trace context onto the request before returning.

Call this before sending the request on the wire.

Parameters
request:HttpClientRequest

to inject the tracing context with

Returns:Span

client side span

handleSendback to summary
public Span handleSend(HttpClientRequest request, TraceContext parent)

Deprecated

as a consequence of HttpClientRequest being deprecated. See corresponding docs for further information.

Same as handleSend(HttpClientRequest) but with an explicit parent TraceContext.

Parameters
request:HttpClientRequest

to inject the tracing context with

parent:TraceContext

TraceContext that is to be the client side span's parent

Returns:Span

client side span