mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 22:45:26 +08:00
Fix trace unavailable on distributed version (#5072)
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
This commit is contained in:
parent
94f0966225
commit
584051b2bf
@ -63,9 +63,11 @@ func (mr *MilvusRoles) EnvValue(env string) bool {
|
||||
}
|
||||
|
||||
func (mr *MilvusRoles) Run(localMsg bool) {
|
||||
closer := trace.InitTracing("standalone")
|
||||
if closer != nil {
|
||||
defer closer.Close()
|
||||
if os.Getenv("DEPLOY_MODE") == "STANDALONE" {
|
||||
closer := trace.InitTracing("standalone")
|
||||
if closer != nil {
|
||||
defer closer.Close()
|
||||
}
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user