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 Type
    Method
    Description
    extractTraceIdFromRequest(jakarta.servlet.http.HttpServletRequest req)
    Extract trace ID from the HTTP request.
  • Method Details

    • extractTraceIdFromRequest

      String extractTraceIdFromRequest(jakarta.servlet.http.HttpServletRequest req)
      Extract trace ID from the HTTP request.
      Parameters:
      req - the HTTP servlet request.
      Returns:
      the trace ID or null, if none found.