Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问如何利用中间件或者debug监控该请求的耗时,想用来做服务性能监控打点用 #296

Open
liuyke opened this issue Jul 9, 2021 · 1 comment

Comments

@liuyke
Copy link

liuyke commented Jul 9, 2021

No description provided.

@guonaihong
Copy link
Owner

现在的请求耗时, 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): ===================

如果不满足, 可以提出一个想要的伪代码, 这两天加上.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants