mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-09 03:10:26 +08:00
不把499状态码加入状态码统计
This commit is contained in:
@@ -212,6 +212,12 @@ func (this *Task) Add(obj MetricInterface) {
|
|||||||
var keys = []string{}
|
var keys = []string{}
|
||||||
for _, key := range this.item.Keys {
|
for _, key := range this.item.Keys {
|
||||||
k := obj.MetricKey(key)
|
k := obj.MetricKey(key)
|
||||||
|
|
||||||
|
// 忽略499状态
|
||||||
|
if key == "${status}" && k == "499" {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
keys = append(keys, k)
|
keys = append(keys, k)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user