java.lang.Object
org.springframework.boot.actuate.trace.http.HttpTrace

public final class HttpTrace extends Object
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
  • Constructor Details

    • HttpTrace

      public HttpTrace(HttpTrace.Request request, HttpTrace.Response response, Instant timestamp, HttpTrace.Principal principal, HttpTrace.Session session, Long timeTaken)
      Creates a fully-configured HttpTrace instance. Primarily for use by HttpTraceRepository implementations when recreating a trace from a persistent store.
      Parameters:
      request - the request
      response - the response
      timestamp - the timestamp of the request-response exchange
      principal - the principal, if any
      session - the session, if any
      timeTaken - the time taken, in milliseconds, to complete the request-response exchange, if known
      Since:
      2.1.0
  • Method Details