mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +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 #6153 Signed-off-by: joannejchen <chenjjoanne@gmail.com>
This commit is contained in:
parent
df93439c3b
commit
9794c52c65
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user