Commit f9952b49 authored by jingbo.wang's avatar jingbo.wang

path错误修改

parent b01d8b63
...@@ -49,7 +49,7 @@ func msgInfluxProcess(traceMsgs []end_points.TraceMsg) { ...@@ -49,7 +49,7 @@ func msgInfluxProcess(traceMsgs []end_points.TraceMsg) {
} }
path := traceMsg.Name path := traceMsg.Name
if _, ok := httpMethod[path]; ok { if _, ok := httpMethod[path]; ok {
path = traceMsg.Tags.HttpMethod + " " + traceMsg.Tags.HttpPath path = traceMsg.Tags.HttpMethod + " " + path
} }
path = strings.ToLower(path) path = strings.ToLower(path)
......
...@@ -96,7 +96,7 @@ var defaultRegistry Registry = nil ...@@ -96,7 +96,7 @@ var defaultRegistry Registry = nil
//初始化 //初始化
func Init(name string, options map[string]interface{}) error { func Init(name string, options map[string]interface{}) error {
if defaultRegistry != nil { if defaultRegistry != nil {
return errors.New("default registry is exists") return nil
} }
defaultRegistry = New(name) defaultRegistry = New(name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment