diff --git a/log/activity.go b/log/activity.go index fc78445..9dfe5cf 100644 --- a/log/activity.go +++ b/log/activity.go @@ -21,7 +21,7 @@ type actLogger struct { func (l actLogger) Info(m Map) { if !isOff.Load() { - m["trace-id"] = l.trcId + m["traceID"] = l.trcId m["identifier"] = l.identifier actZapLog.Info("", zap.Any("payload", m)) } diff --git a/log/runtime.go b/log/runtime.go index 2ba2bbb..cd15dc3 100644 --- a/log/runtime.go +++ b/log/runtime.go @@ -22,7 +22,7 @@ type runLogger struct { func (l runLogger) Info(m Map) { if !isOff.Load() { // add request id - m["trace-id"] = l.trcId + m["traceID"] = l.trcId m["identifier"] = l.identifier runZapLog.Info("", zap.Any("payload", m)) } @@ -30,7 +30,7 @@ func (l runLogger) Info(m Map) { func (l runLogger) Warning(m Map) { if !isOff.Load() { // add request id - m["trace-id"] = l.trcId + m["traceID"] = l.trcId m["identifier"] = l.identifier runZapLog.Warn("", zap.Any("payload", m)) } @@ -38,7 +38,7 @@ func (l runLogger) Warning(m Map) { func (l runLogger) Error(m Map) { if !isOff.Load() { // add request id - m["trace-id"] = l.trcId + m["traceID"] = l.trcId m["identifier"] = l.identifier runZapLog.Error("", zap.Any("payload", m)) } diff --git a/log/worker.go b/log/worker.go index 0f32a90..1fc04aa 100644 --- a/log/worker.go +++ b/log/worker.go @@ -22,7 +22,7 @@ type wrkLogger struct { func (l wrkLogger) Info(m Map) { if !isOff.Load() { // add request id - m["trace-id"] = l.trcId + m["traceID"] = l.trcId m["identifier"] = l.identifier wrkZapLog.Info("", zap.Any("payload", m)) }