Package io.micronaut.gcp.logging
Interface StackdriverTraceConstants
public interface StackdriverTraceConstants
Constants 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 SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe name of the MDC parameter, Spring Sleuth is storing the span export information at.static final StringThe name of the MDC parameter, Spring Sleuth is storing the span id at.static final StringThe name of the MDC parameter, Spring Sleuth is storing the trace id at.static final StringThe JSON field name for the service context.static final StringThe JSON field name for the log level (severity).static final StringThe JSON field name for the span-id.static final StringThe JSON field name for the nanos of the timestamp.static final StringThe JSON field name for the seconds of the timestamp.static final StringThe JSON field name for the trace-id.
- 
Method SummaryStatic MethodsModifier and TypeMethodDescriptionstatic StringcomposeFullTraceName(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.
- 
Field Details- 
SEVERITY_ATTRIBUTEThe JSON field name for the log level (severity).- See Also:
 
- 
TIMESTAMP_SECONDS_ATTRIBUTEThe JSON field name for the seconds of the timestamp.- See Also:
 
- 
TIMESTAMP_NANOS_ATTRIBUTEThe JSON field name for the nanos of the timestamp.- See Also:
 
- 
SPAN_ID_ATTRIBUTEThe JSON field name for the span-id.- See Also:
 
- 
TRACE_ID_ATTRIBUTEThe JSON field name for the trace-id.- See Also:
 
- 
MDC_FIELD_TRACE_IDThe name of the MDC parameter, Spring Sleuth is storing the trace id at.- See Also:
 
- 
MDC_FIELD_SPAN_IDThe name of the MDC parameter, Spring Sleuth is storing the span id at.- See Also:
 
- 
MDC_FIELD_SPAN_EXPORTThe name of the MDC parameter, Spring Sleuth is storing the span export information at.- See Also:
 
- 
SERVICE_CONTEXT_ATTRIBUTEThe JSON field name for the service context.- Since:
- 1.2
- See Also:
 
 
- 
- 
Method Details- 
composeFullTraceNameComposes 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 ID
- traceId- the trace ID
- Returns:
- the trace name in the "projects/[GCP_PROJECT_ID]/trace/[TRACE_ID]" format
 
 
-