milvus/pkg/log/fields.go
Zhen Ye 6f1febe881
enhance: move streaming coord from datacoord to rootcoord (#39009)
issue: #38399
pr: #39007

We want to support broadcast operation for both streaming and msgstream.
But msgstream can be only sent message from rootcoord and proxy.
So this pr move the streamingcoord to rootcoord to make easier
implementation.

---------

Signed-off-by: chyezh <chyezh@outlook.com>
2025-01-07 17:56:56 +08:00

19 lines
428 B
Go

package log
import "go.uber.org/zap"
const (
FieldNameModule = "module"
FieldNameComponent = "component"
)
// FieldModule returns a zap field with the module name.
func FieldModule(module string) zap.Field {
return zap.String(FieldNameModule, module)
}
// FieldComponent returns a zap field with the component name.
func FieldComponent(component string) zap.Field {
return zap.String(FieldNameComponent, component)
}