package logger import ( "context" "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/tracing" "go.uber.org/zap" ) func (l *Logger) Debug(ctx context.Context, msg string, fields ...zap.Field) { l.z.Debug(msg, append(fields, zap.String("trace_id", tracing.GetTraceID(ctx)))...) } func (l *Logger) Info(ctx context.Context, msg string, fields ...zap.Field) { l.z.Info(msg, append(fields, zap.String("trace_id", tracing.GetTraceID(ctx)))...) } func (l *Logger) Warn(ctx context.Context, msg string, fields ...zap.Field) { l.z.Info(msg, append(fields, zap.String("trace_id", tracing.GetTraceID(ctx)))...) } func (l *Logger) Error(ctx context.Context, msg string, fields ...zap.Field) { l.z.Info(msg, append(fields, zap.String("trace_id", tracing.GetTraceID(ctx)))...) }