实现基础的统计指标

This commit is contained in:
刘祥超
2021-06-30 20:01:00 +08:00
parent 889c52330d
commit df7859387d
15 changed files with 948 additions and 3 deletions

View File

@@ -7,6 +7,8 @@ func (this *HTTPRequest) doStat() {
if this.Server == nil {
return
}
// 内置的统计
stats.SharedHTTPRequestStatManager.AddRemoteAddr(this.Server.Id, this.requestRemoteAddr())
stats.SharedHTTPRequestStatManager.AddUserAgent(this.Server.Id, this.requestHeader("User-Agent"))
}