mirror of https://github.com/milvus-io/milvus.git
Fix trace unavailable on distributed version (#5072)
Signed-off-by: godchen <qingxiang.chen@zilliz.com>pull/5080/head
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…
Reference in New Issue