类 HttpExchangeTracer

    • 构造器详细资料

      • HttpExchangeTracer

        public HttpExchangeTracer​(Set<Include> includes)
        Creates a new HttpExchangeTracer that will use the given includes to determine the contents of its traces.
        参数:
        includes - the includes
    • 方法详细资料

      • receivedRequest

        public final HttpTrace receivedRequest​(TraceableRequest request)
        Begins the tracing of the exchange that was initiated by the given request being received.
        参数:
        request - the received request
        返回:
        the HTTP trace for the
      • sendingResponse

        public final void sendingResponse​(HttpTrace trace,
                                          TraceableResponse response,
                                          Supplier<Principal> principal,
                                          Supplier<String> sessionId)
        Ends the tracing of the exchange that is being concluded by sending the given response.
        参数:
        trace - the trace for the exchange
        response - the response that concludes the exchange
        principal - a supplier for the exchange's principal
        sessionId - a supplier for the id of the exchange's session