public interface StackdriverTraceConstants
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 |
SERVICE_CONTEXT_ATTRIBUTE
The JSON field name for the service context.
|
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.
|
static final String SEVERITY_ATTRIBUTE
static final String TIMESTAMP_SECONDS_ATTRIBUTE
static final String TIMESTAMP_NANOS_ATTRIBUTE
static final String SPAN_ID_ATTRIBUTE
static final String TRACE_ID_ATTRIBUTE
static final String MDC_FIELD_TRACE_ID
static final String MDC_FIELD_SPAN_ID
static final String MDC_FIELD_SPAN_EXPORT
static final String SERVICE_CONTEXT_ATTRIBUTE
static String composeFullTraceName(String projectId, String traceId)
projectId
- the GCP project IDtraceId
- the trace IDCopyright © 2020 Pivotal Software, Inc.. All rights reserved.