Package ca.uhn.fhir.rest.server
Class ServletRequestTracing
java.lang.Object
ca.uhn.fhir.rest.server.ServletRequestTracing
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getOrGenerateRequestId
(jakarta.servlet.ServletRequest theServletRequest) Assign a tracing id to this request, using the X-Request-ID if present and compatible.static String
maybeGetRequestId
(jakarta.servlet.ServletRequest theServletRequest)
-
Field Details
-
ATTRIBUTE_REQUEST_ID
-
-
Method Details
-
getOrGenerateRequestId
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
-