Merge pull request #3290 from cmaf/tracing-span-logging-error

tracing: Add span name to logging error
This commit is contained in:
Chelsea Mafrica
2021-12-17 11:13:41 -08:00
committed by GitHub

View File

@@ -130,7 +130,7 @@ func Trace(parent context.Context, logger *logrus.Entry, name string, tags ...ma
if logger == nil {
logger = kataTraceLogger
}
logger.WithField("type", "bug").Error("trace called before context set")
logger.WithField("type", "bug").WithField("name", name).Error("trace called before context set")
parent = context.Background()
}