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

This commit is contained in:
刘祥超
2021-10-04 08:41:13 +08:00
parent adadb52d4e
commit c01bb57dea

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)
}