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 ObjectgetAttribute(String key) Returns an HTTP attribute.default io.micrometer.observation.transport.Kindkind()Returns the transport kind.default voidsetAttribute(String key, Object value) Sets an HTTP attribute.Methods inherited from interface io.micrometer.tracing.http.HttpRequest
header, method, path, remoteIp, remotePort, route, urlMethods 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
nullif 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:RequestReturns the transport kind.
-