1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-08-19 00:17:54 +00:00

improvement: Fix naming conventions for span name and log subsystem

Normally, the span name should be the same as the function name, and the log subsystem should not contain spaces.

Fixes 

Signed-off-by: joannejchen <chenjjoanne@gmail.com>
This commit is contained in:
joannejchen 2023-02-02 15:23:29 -06:00
parent df93439c3b
commit 9794c52c65

View File

@ -42,16 +42,16 @@ func NewFilesystemShare(s *Sandbox) (FilesystemSharer, error) {
}, nil
}
// Logger returns a logrus logger appropriate for logging Filesystem sharing messages
// Logger returns a logrus logger appropriate for logging filesystem sharing messages
func (f *FilesystemShare) Logger() *logrus.Entry {
return virtLog.WithFields(logrus.Fields{
"subsystem": "filesystem share",
"subsystem": "fs_share",
"sandbox": f.sandbox.ID(),
})
}
func (f *FilesystemShare) prepareBindMounts(ctx context.Context) error {
span, ctx := katatrace.Trace(ctx, f.Logger(), "setupBindMounts", fsShareTracingTags)
span, ctx := katatrace.Trace(ctx, f.Logger(), "prepareBindMounts", fsShareTracingTags)
defer span.End()
var err error