Class HttpTrace
java.lang.Object
org.springframework.boot.actuate.trace.http.HttpTrace
A trace event for handling of an HTTP request and response exchange. Can be used for
analyzing contextual information such as HTTP headers.
- Since:
- 2.0.0
- Author:
- Dave Syer, Andy Wilkinson
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Principal associated with an HTTP request-response exchange.static final class
Trace of an HTTP request.static final class
Trace of an HTTP response.static final class
Session associated with an HTTP request-response exchange. -
Constructor Summary
ConstructorDescriptionHttpTrace
(HttpTrace.Request request, HttpTrace.Response response, Instant timestamp, HttpTrace.Principal principal, HttpTrace.Session session, Long timeTaken) Creates a fully-configuredHttpTrace
instance. -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
HttpTrace
public HttpTrace(HttpTrace.Request request, HttpTrace.Response response, Instant timestamp, HttpTrace.Principal principal, HttpTrace.Session session, Long timeTaken) Creates a fully-configuredHttpTrace
instance. Primarily for use byHttpTraceRepository
implementations when recreating a trace from a persistent store.- Parameters:
request
- the requestresponse
- the responsetimestamp
- the timestamp of the request-response exchangeprincipal
- the principal, if anysession
- the session, if anytimeTaken
- the time taken, in milliseconds, to complete the request-response exchange, if known- Since:
- 2.1.0
-
-
Method Details
-
getTimestamp
-
getPrincipal
-
getSession
-
getRequest
-
getResponse
-
getTimeTaken
-