Interface TraceIdExtractor
- All Known Implementing Classes:
CloudTraceIdExtractor
public interface TraceIdExtractor
An extractor that can provide a trace ID from an HTTP request.
-
Method Summary
Modifier and TypeMethodDescriptionextractTraceIdFromRequest
(jakarta.servlet.http.HttpServletRequest req) Extract trace ID from the HTTP request.
-
Method Details
-
extractTraceIdFromRequest
Extract trace ID from the HTTP request.- Parameters:
req
- the HTTP servlet request.- Returns:
- the trace ID or null, if none found.
-