Class CapturedHttpHeaders

    • Method Detail

      • empty

        public static CapturedHttpHeaders empty()
        Deprecated.
        Returns a configuration that does not capture any HTTP headers as span attributes.
      • client

        public static CapturedHttpHeaders client​(Config config)
        Deprecated.
        Returns a configuration that captures HTTP client request and response headers as configured in the received config.
      • server

        public static CapturedHttpHeaders server​(Config config)
        Deprecated.
        Returns a configuration that captures HTTP server request and response headers as configured in the received config.
      • create

        public static CapturedHttpHeaders create​(List<String> capturedRequestHeaders,
                                                 List<String> capturedResponseHeaders)
        Deprecated.
        Returns a configuration that captures chosen HTTP request and response headers.
        Parameters:
        capturedRequestHeaders - A list of HTTP request header names that are to be captured as span attributes.
        capturedResponseHeaders - A list of HTTP response header names that are to be captured as span attributes.
      • requestHeaders

        public abstract List<String> requestHeaders()
        Deprecated.
        Returns the list of HTTP request header names that are to be captured as span attributes.
      • responseHeaders

        public abstract List<String> responseHeaders()
        Deprecated.
        Returns the list of HTTP response header names that are to be captured as span attributes.