Class TraceLoggingEnhancer

    • Constructor Detail

      • TraceLoggingEnhancer

        public TraceLoggingEnhancer()
      • TraceLoggingEnhancer

        public TraceLoggingEnhancer​(String prefix)
    • Method Detail

      • setCurrentTraceId

        public static void setCurrentTraceId​(String id)
        Set the Trace ID associated with any logging done by the current thread.
        Parameters:
        id - The traceID, in the form projects/[PROJECT_ID]/traces/[TRACE_ID]
      • getCurrentTraceId

        public static String getCurrentTraceId()
        Get the Trace ID associated with any logging done by the current thread.
        Returns:
        id The traceID