thoas / stats

A Go middleware that stores various information about your web application (response time, status code count, etc.)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why reset Response Counts?

steamrolla opened this issue · comments

https://github.com/thoas/stats/blob/master/stats.go#L33

Why reset the ResponseCounts every second? My team and I were using this value, banking on getting a total of status codes from this, but, after seeing this have switched to using the TotalResponseCounts and diffing.