Commit c719795e authored by xiaoguang.xu's avatar xiaoguang.xu

对 path toLower 处理

parent 9c377c78
...@@ -9,6 +9,7 @@ import ( ...@@ -9,6 +9,7 @@ import (
"github.com/gomodule/redigo/redis" "github.com/gomodule/redigo/redis"
"github.com/influxdata/influxdb/client/v2" "github.com/influxdata/influxdb/client/v2"
"log" "log"
"strings"
"time" "time"
) )
...@@ -50,6 +51,8 @@ func msgInfluxProcess(traceMsgs []end_points.TraceMsg) { ...@@ -50,6 +51,8 @@ func msgInfluxProcess(traceMsgs []end_points.TraceMsg) {
path = traceMsg.Tags.HttpMethod + " " + traceMsg.Tags.HttpPath path = traceMsg.Tags.HttpMethod + " " + traceMsg.Tags.HttpPath
} }
path = strings.ToLower(path)
sysName := traceMsg.LocalEndpoint.ServiceName sysName := traceMsg.LocalEndpoint.ServiceName
fields := make(map[string]interface{}) 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