Package io.micrometer.tracing.http
Interface HttpClientHandler
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
.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleReceive
(HttpClientResponse response, Span span) Deprecated.Finishes the client span after assigning it tags according to the response or error.handleSend
(HttpClientRequest request) Deprecated.Starts the client span after assigning it a name and tags.handleSend
(HttpClientRequest request, TraceContext parent) Deprecated.Same ashandleSend(HttpClientRequest)
but with an explicit parentTraceContext
.
-
Method Details
-
handleSend
Deprecated.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
- to inject the tracing context with- Returns:
- client side span
-
handleSend
Deprecated.Same ashandleSend(HttpClientRequest)
but with an explicit parentTraceContext
.- Parameters:
request
- to inject the tracing context withparent
-TraceContext
that is to be the client side span's parent- Returns:
- client side span
-
handleReceive
Deprecated.Finishes the client span after assigning it tags according to the response or error.- Parameters:
response
- the HTTP responsespan
- span to be ended
-