请问如何利用中间件或者debug监控该请求的耗时,想用来做服务性能监控打点用
liuyke opened this issue · 1 comments
liuyke commented
请问如何利用中间件或者debug监控该请求的耗时,想用来做服务性能监控打点用
guonaihong commented
现在的请求耗时, https://github.com/guonaihong/gout#trace-info
默认是打在stdout里面. 你看是否可以满足
=================== Trace Info(S): ===================
DnsDuration : 0s
ConnDuration : 868.623µs
TLSDuration : 0s
RequestDuration : 376.712µs
WaitResponeDuration : 717.008µs
ResponseDuration : 76.158µs
TotalDuration : 2.13921ms
=================== Trace Info(E): ===================
如果不满足, 可以提出一个想要的伪代码, 这两天加上.