We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c727b3 commit 3f55be6Copy full SHA for 3f55be6
helper.go
@@ -70,9 +70,11 @@ func SetWithConfig(level string, config *LogConfig) error {
70
} else if config.googleCloudLogging {
71
logger.Formatter = &logrus.JSONFormatter{
72
FieldMap: logrus.FieldMap{
73
+ // https://cloud.google.com/logging/docs/agent/logging/configuration#special-fields
74
logrus.FieldKeyTime: "timestamp",
75
logrus.FieldKeyLevel: "severity",
76
logrus.FieldKeyMsg: "message",
77
+ "trace": "traceID", // Trace is special in GCE so we have to use another name.
78
},
79
TimestampFormat: time.RFC3339Nano,
80
}
0 commit comments