Skip to content

发现个bug 配置agent.log.interval.seconds 间隔写log时间怎么加入到 整个请求时间上了 #5

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

Closed
weiwang00707 opened this issue Jul 18, 2019 · 4 comments

Comments

@weiwang00707
Copy link

作者你好
我发现配置间隔写log时间6s,结果我的方法监控就多加上了6s
怀疑这块有bug

@dingjs
Copy link
Owner

dingjs commented Jul 19, 2019

你好,方法监控多加上了6S是什么意思,麻烦说详细点

@weiwang00707
Copy link
Author

这样的 方法执行只有一行 打印hello, 但是输出的json 显示 执行了6s
我怀疑是 间隔时间 处理到执行时间里面了

@weiwang00707
Copy link
Author

eg:
"class": "com.johnathanmsmith.mvc.web.controller.IndexController",
"start": "2019-07-18 11:17:10",
"end": "2019-07-18 11:17:16",

但是其实这个方法里面 只有一句输出hello 但是监控显示 执行了6s
刚好这个差值 跟agent.log.interval.seconds 的值是一样的

@dingjs
Copy link
Owner

dingjs commented Jul 19, 2019

你好,这个问题不存在哈,建议你尝试几次。我能想到的是你加了断点调试,确实是执行了6S。
你可以看看这个网址 http://47.96.150.36:8080,其他人的数据。
间隔时间没有算到执行时间里,这块代码是反复验证的。

@dingjs dingjs closed this as completed Jul 21, 2019
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