public final class StackdriverTraceConstants extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MDC_FIELD_SPAN_EXPORT
The name of the MDC parameter, Spring Sleuth is storing the span export information at
|
static String |
MDC_FIELD_SPAN_ID
The name of the MDC parameter, Spring Sleuth is storing the span id at
|
static String |
MDC_FIELD_TRACE_ID
The name of the MDC parameter, Spring Sleuth is storing the trace id at
|
static String |
SEVERITY_ATTRIBUTE
The JSON field name for the log level (severity)
|
static String |
SPAN_ID_ATTRIBUTE
The JSON field name for the span-id
|
static String |
TIMESTAMP_NANOS_ATTRIBUTE
The JSON field name for the nanos of the timestamp
|
static String |
TIMESTAMP_SECONDS_ATTRIBUTE
The JSON field name for the seconds of the timestamp
|
static String |
TRACE_ID_ATTRIBUTE
The JSON field name for the trace-id
|
Modifier and Type | Method and Description |
---|---|
static String |
composeFullTraceName(String projectId,
String traceId)
Composes the full trace name as expected by the Google Developers Console log viewer, to
enable trace correlation with log entries.
|
public static final String SEVERITY_ATTRIBUTE
public static final String TIMESTAMP_SECONDS_ATTRIBUTE
public static final String TIMESTAMP_NANOS_ATTRIBUTE
public static final String SPAN_ID_ATTRIBUTE
public static final String TRACE_ID_ATTRIBUTE
public static final String MDC_FIELD_TRACE_ID
public static final String MDC_FIELD_SPAN_ID
public static final String MDC_FIELD_SPAN_EXPORT
public static String composeFullTraceName(String projectId, String traceId)
projectId
- The GCP project IDtraceId
- The trace IDCopyright © 2018 Pivotal Software, Inc.. All rights reserved.