Class ServletRequestTracing

java.lang.Object
ca.uhn.fhir.rest.server.ServletRequestTracing

public class ServletRequestTracing extends Object
  • Field Details

  • Method Details

    • getOrGenerateRequestId

      public static String getOrGenerateRequestId(jakarta.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
    • maybeGetRequestId

      @Nullable public static String maybeGetRequestId(jakarta.servlet.ServletRequest theServletRequest)