Commit 4ad1aab0 authored by jingbo.wang's avatar jingbo.wang

忽略option请求的trace记录

parent 1690b4b1
......@@ -8,6 +8,7 @@ import (
"github.com/gomodule/redigo/redis"
"github.com/influxdata/influxdb/client/v2"
"github.com/vrg0/go-common/logger"
"strings"
"time"
)
......@@ -43,12 +44,17 @@ func msgInfluxProcess(traceMsgs []end_points.TraceMsg) {
if traceMsg.Kind != "SERVER" {
continue
}
if strings.ToLower(traceMsg.Tags.HttpMethod) == "options" {
continue
}
path := traceMsg.Name
if _, ok := httpMethod[path]; ok {
path = traceMsg.Tags.HttpMethod + " " + traceMsg.Tags.HttpPath
}
path = strings.ToLower(path)
sysName := traceMsg.LocalEndpoint.ServiceName
fields := make(map[string]interface{})
......
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