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

path错误修改

parent b01d8b63
......@@ -49,7 +49,7 @@ func msgInfluxProcess(traceMsgs []end_points.TraceMsg) {
}
path := traceMsg.Name
if _, ok := httpMethod[path]; ok {
path = traceMsg.Tags.HttpMethod + " " + traceMsg.Tags.HttpPath
path = traceMsg.Tags.HttpMethod + " " + path
}
path = strings.ToLower(path)
......
......@@ -96,7 +96,7 @@ var defaultRegistry Registry = nil
//初始化
func Init(name string, options map[string]interface{}) error {
if defaultRegistry != nil {
return errors.New("default registry is exists")
return nil
}
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