public class TraceLoggingEnhancer extends Object implements LoggingEnhancer
| Constructor and Description |
|---|
TraceLoggingEnhancer() |
TraceLoggingEnhancer(String prefix) |
| Modifier and Type | Method and Description |
|---|---|
void |
enhanceLogEntry(LogEntry.Builder builder) |
static String |
getCurrentTraceId()
Get the Trace ID associated with any logging done by the current thread.
|
static void |
setCurrentTraceId(String id)
Set the Trace ID associated with any logging done by the current thread.
|
public TraceLoggingEnhancer()
public TraceLoggingEnhancer(String prefix)
public static void setCurrentTraceId(String id)
id - The traceID, in the form projects/[PROJECT_ID]/traces/[TRACE_ID]public static String getCurrentTraceId()
public void enhanceLogEntry(LogEntry.Builder builder)
enhanceLogEntry in interface LoggingEnhancerCopyright © 2019 Google LLC. All rights reserved.