Top Description Methods
io.micrometer.tracing.http

public Interface HttpServerRequest

extends HttpRequest
Annotations
@Deprecated
Imports
io.micrometer.observation.transport.Kind

Deprecated

scheduled for removal in 1.4.0

This API is taken from OpenZipkin Brave.

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

Authors
OpenZipkin Brave Authors, Marcin Grzejszczak
Since
1.10.0

Method Summary

Modifier and TypeMethod and Description
public default Object

Returns:

attribute with the given key or null if not set
getAttribute
(String
attribute key
key
)

Returns an HTTP attribute.

public default Kind
kind()

Implements io.micrometer.tracing.http.Request.kind.

Returns the transport kind.
public default void
setAttribute(String
attribute key
key
,
Object
attribute value
value
)

Sets an HTTP attribute.

Inherited from io.micrometer.tracing.http.HttpRequest:
headermethodpathremoteIpremotePortrouteurl

Method Detail

getAttributeback to summary
public default Object getAttribute(String key)

Returns an HTTP attribute.

Parameters
key:String

attribute key

Returns:Object

attribute with the given key or null if not set

kindback to summary
public default Kind kind()

Implements io.micrometer.tracing.http.Request.kind.

Doc from io.micrometer.tracing.http.Request.kind.

Returns the transport kind.

Returns:Kind

the remote kind describing the direction and type of the request

Annotations
@Override
setAttributeback to summary
public default void setAttribute(String key, Object value)

Sets an HTTP attribute.

Parameters
key:String

attribute key

value:Object

attribute value