Commit 57e92151 authored by jingbo.wang's avatar jingbo.wang

去掉options

parent c719795e
...@@ -45,8 +45,11 @@ func msgInfluxProcess(traceMsgs []end_points.TraceMsg) { ...@@ -45,8 +45,11 @@ func msgInfluxProcess(traceMsgs []end_points.TraceMsg) {
if traceMsg.Kind != "SERVER" { if traceMsg.Kind != "SERVER" {
continue continue
} }
path := traceMsg.Name if strings.ToLower(traceMsg.Tags.HttpMethod) == "options" {
continue
}
path := traceMsg.Name
if _, ok := httpMethod[path]; ok { if _, ok := httpMethod[path]; ok {
path = traceMsg.Tags.HttpMethod + " " + traceMsg.Tags.HttpPath path = traceMsg.Tags.HttpMethod + " " + traceMsg.Tags.HttpPath
} }
......
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