public class XCloudTraceIdExtractor extends Object implements TraceIdExtractor
Modifier and Type | Field and Description |
---|---|
static String |
X_CLOUD_TRACE_HEADER
The name of the header that contains the trace id.
|
Constructor and Description |
---|
XCloudTraceIdExtractor() |
Modifier and Type | Method and Description |
---|---|
String |
extractTraceIdFromRequest(javax.servlet.http.HttpServletRequest req)
Extract trace ID from the HTTP request.
|
public static final String X_CLOUD_TRACE_HEADER
public String extractTraceIdFromRequest(javax.servlet.http.HttpServletRequest req)
TraceIdExtractor
extractTraceIdFromRequest
in interface TraceIdExtractor
req
- the HTTP servlet request.Copyright © 2021. All rights reserved.