不把499状态码加入状态码统计

This commit is contained in:
GoEdgeLab
2021-10-04 08:41:13 +08:00
parent e7e8d72bf5
commit ce02c12bd0

View File

@@ -212,6 +212,12 @@ func (this *Task) Add(obj MetricInterface) {
var keys = []string{}
for _, key := range this.item.Keys {
k := obj.MetricKey(key)
// 忽略499状态
if key == "${status}" && k == "499" {
return
}
keys = append(keys, k)
}