Top Description Methods
io.micrometer.tracing.http

public Interface HttpRequest

extends Request
Known Direct Subinterfaces
io.micrometer.tracing.http.HttpServerRequest, io.micrometer.tracing.http.HttpClientRequest
Annotations
@Deprecated
Imports
io.micrometer.common.lang.Nullable

Deprecated

scheduled for removal in 1.4.0

This API is taken from OpenZipkin Brave.

Abstract response type used for parsing and sampling. Represents an HTTP request.

Authors
OpenZipkin Brave Authors, Marcin Grzejszczak
Since
1.10.0

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

an HTTP header or null if not set.
header
(String
header name
name
)

Returns a header.

public String

Returns:

an HTTP method.
method
()

Returns an HTTP method.

public String

Returns:

an HTTP path or null if not set.
path
()

Returns an HTTP path.

public default String

Returns:

remote IP for the given connection.
remoteIp
()

Returns a remote IP.

public default int

Returns:

remote port for the given connection.
remotePort
()

Returns a remote port.

public default String

Returns:

an HTTP route or null if not set
route
()

Returns an expression such as "/items/:itemId" representing an application endpoint, conventionally associated with the tag key "http.route".

public String

Returns:

an HTTP URL or null if not set.
url
()

Returns an HTTP URL.

Inherited from io.micrometer.tracing.http.Request:
headerNameskindunwrap

Method Detail

headerback to summary
public String header(String name)

Returns a header.

Parameters
name:String

header name

Returns:String

an HTTP header or null if not set.

Annotations
@Nullable
methodback to summary
public String method()

Returns an HTTP method.

Returns:String

an HTTP method.

pathback to summary
public String path()

Returns an HTTP path.

Returns:String

an HTTP path or null if not set.

Annotations
@Nullable
remoteIpback to summary
public default String remoteIp()

Returns a remote IP.

Returns:String

remote IP for the given connection.

remotePortback to summary
public default int remotePort()

Returns a remote port.

Returns:int

remote port for the given connection.

routeback to summary
public default String route()

Returns an expression such as "/items/:itemId" representing an application endpoint, conventionally associated with the tag key "http.route". If no route matched, "" (empty string) is returned. null indicates this instrumentation doesn't understand http routes.

Returns:String

an HTTP route or null if not set

Annotations
@Nullable
urlback to summary
public String url()

Returns an HTTP URL.

Returns:String

an HTTP URL or null if not set.

Annotations
@Nullable