MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / doStat

Method doStat

internal/nodes/http_request_stat.go:8–16  ·  view source on GitHub ↗

统计

()

Source from the content-addressed store, hash-verified

6
7// 统计
8func (this *HTTPRequest) doStat() {
9 if this.ReqServer == nil || this.web == nil || this.web.StatRef == nil {
10 return
11 }
12
13 // 内置的统计
14 stats.SharedHTTPRequestStatManager.AddRemoteAddr(this.ReqServer.Id, this.requestRemoteAddr(true), this.writer.SentBodyBytes(), this.isAttack)
15 stats.SharedHTTPRequestStatManager.AddUserAgent(this.ReqServer.Id, this.requestHeader("User-Agent"), this.remoteAddr)
16}

Callers 1

doEndMethod · 0.95

Calls 5

requestRemoteAddrMethod · 0.95
requestHeaderMethod · 0.95
AddRemoteAddrMethod · 0.80
SentBodyBytesMethod · 0.80
AddUserAgentMethod · 0.80

Tested by

no test coverage detected