Class ServletRequestTracing

    • Method Detail

      • getOrGenerateRequestId

        public static String getOrGenerateRequestId​(javax.servlet.ServletRequest theServletRequest)
        Assign a tracing id to this request, using the X-Request-ID if present and compatible. If none present, generate a 64 random alpha-numeric string that is not cryptographically secure.
        Parameters:
        theServletRequest - the request to trace
        Returns:
        the tracing id