Package io.micronaut.gcp.logging
Interface StackdriverTraceConstants
-
public interface StackdriverTraceConstantsConstants for Stackdriver Trace. Original source at: https://github.com/spring-cloud/spring-cloud-gcp/blob/master/spring-cloud-gcp-logging/src/main/java/org/springframework/cloud/gcp/logging/StackdriverTraceConstants.java- Since:
- 3.2.0
- Author:
- João André Martins, Chengyuan Zhao, Vinicius Carvalho
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMDC_FIELD_SPAN_EXPORTThe name of the MDC parameter, Spring Sleuth is storing the span export information at.static java.lang.StringMDC_FIELD_SPAN_IDThe name of the MDC parameter, Spring Sleuth is storing the span id at.static java.lang.StringMDC_FIELD_TRACE_IDThe name of the MDC parameter, Spring Sleuth is storing the trace id at.static java.lang.StringSERVICE_CONTEXT_ATTRIBUTEThe JSON field name for the service context.static java.lang.StringSEVERITY_ATTRIBUTEThe JSON field name for the log level (severity).static java.lang.StringSPAN_ID_ATTRIBUTEThe JSON field name for the span-id.static java.lang.StringTIMESTAMP_NANOS_ATTRIBUTEThe JSON field name for the nanos of the timestamp.static java.lang.StringTIMESTAMP_SECONDS_ATTRIBUTEThe JSON field name for the seconds of the timestamp.static java.lang.StringTRACE_ID_ATTRIBUTEThe JSON field name for the trace-id.
-
Method Summary
Static Methods Modifier and Type Method Description static java.lang.StringcomposeFullTraceName(java.lang.String projectId, java.lang.String traceId)Composes the full trace name as expected by the Google Developers Console log viewer, to enable trace correlation with log entries.
-
-
-
Field Detail
-
SEVERITY_ATTRIBUTE
static final java.lang.String SEVERITY_ATTRIBUTE
The JSON field name for the log level (severity).- See Also:
- Constant Field Values
-
TIMESTAMP_SECONDS_ATTRIBUTE
static final java.lang.String TIMESTAMP_SECONDS_ATTRIBUTE
The JSON field name for the seconds of the timestamp.- See Also:
- Constant Field Values
-
TIMESTAMP_NANOS_ATTRIBUTE
static final java.lang.String TIMESTAMP_NANOS_ATTRIBUTE
The JSON field name for the nanos of the timestamp.- See Also:
- Constant Field Values
-
SPAN_ID_ATTRIBUTE
static final java.lang.String SPAN_ID_ATTRIBUTE
The JSON field name for the span-id.- See Also:
- Constant Field Values
-
TRACE_ID_ATTRIBUTE
static final java.lang.String TRACE_ID_ATTRIBUTE
The JSON field name for the trace-id.- See Also:
- Constant Field Values
-
MDC_FIELD_TRACE_ID
static final java.lang.String MDC_FIELD_TRACE_ID
The name of the MDC parameter, Spring Sleuth is storing the trace id at.- See Also:
- Constant Field Values
-
MDC_FIELD_SPAN_ID
static final java.lang.String MDC_FIELD_SPAN_ID
The name of the MDC parameter, Spring Sleuth is storing the span id at.- See Also:
- Constant Field Values
-
MDC_FIELD_SPAN_EXPORT
static final java.lang.String MDC_FIELD_SPAN_EXPORT
The name of the MDC parameter, Spring Sleuth is storing the span export information at.- See Also:
- Constant Field Values
-
SERVICE_CONTEXT_ATTRIBUTE
static final java.lang.String SERVICE_CONTEXT_ATTRIBUTE
The JSON field name for the service context.- Since:
- 1.2
- See Also:
- Constant Field Values
-
-
Method Detail
-
composeFullTraceName
static java.lang.String composeFullTraceName(java.lang.String projectId, java.lang.String traceId)Composes the full trace name as expected by the Google Developers Console log viewer, to enable trace correlation with log entries.- Parameters:
projectId- the GCP project IDtraceId- the trace ID- Returns:
- the trace name in the "projects/[GCP_PROJECT_ID]/trace/[TRACE_ID]" format
-
-