Package io.micrometer.tracing.http
Interface HttpServerRequest
- All Superinterfaces:
HttpRequest
,Request
This API is taken from OpenZipkin Brave.
Abstract request type used for parsing and sampling. Represents an HTTP Server request.
- Since:
- 1.10.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault Object
getAttribute
(String key) Returns an HTTP attribute.default io.micrometer.observation.transport.Kind
kind()
Returns the transport kind.default void
setAttribute
(String key, Object value) Sets an HTTP attribute.Methods inherited from interface io.micrometer.tracing.http.HttpRequest
header, method, path, remoteIp, remotePort, route, url
Methods inherited from interface io.micrometer.tracing.http.Request
headerNames, unwrap
-
Method Details
-
getAttribute
Returns an HTTP attribute.- Parameters:
key
- attribute key- Returns:
- attribute with the given key or
null
if not set
-
setAttribute
Sets an HTTP attribute.- Parameters:
key
- attribute keyvalue
- attribute value
-
kind
default io.micrometer.observation.transport.Kind kind()Description copied from interface:Request
Returns the transport kind.
-