Top Description Methods
io.micrometer.tracing.http

public Interface HttpServerHandler

Annotations
@Deprecated
Imports
io.micrometer.tracing.Span

Deprecated

scheduled for removal in 1.4.0

This API is taken from OpenZipkin Brave.

This standardizes a way to instrument http servers, 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 Span

Returns:

server side span (either joined or a new trace)
handleReceive
(HttpServerRequest
HTTP request
request
)

Deprecated as a consequence of HttpServerRequest being deprecated.
Conditionally joins a span, or starts a new trace, depending on if a trace context was extracted from the request.
public void
handleSend(HttpServerResponse
HTTP response
response
,
Span
server side span to end
span
)

Deprecated as a consequence of HttpServerResponse being deprecated.
Finishes the server span after assigning it tags according to the response or error.

Method Detail

handleReceiveback to summary
public Span handleReceive(HttpServerRequest request)

Deprecated

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

Conditionally joins a span, or starts a new trace, depending on if a trace context was extracted from the request. Tags are added before the span is started.

Parameters
request:HttpServerRequest

HTTP request

Returns:Span

server side span (either joined or a new trace)

handleSendback to summary
public void handleSend(HttpServerResponse response, Span span)

Deprecated

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

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

Parameters
response:HttpServerResponse

HTTP response

span:Span

server side span to end