We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/alibaba/sentinel-golang/blob/master/core/stat/stat_slot.go#L68
这个位置是直接设置了rt := util.CurrentTimeMillis() - ctx.StartTime(),调用方就算在前面通过 ctx.PutRT也没法生效,是不是应该通过rt := ctx.RT()获取,如果已经设置过了,就不用覆盖会好一些?
The text was updated successfully, but these errors were encountered:
咱们这边需要特殊设置的场景是怎样的呢,可否帮忙介绍一下
Sorry, something went wrong.
我这边用的是 mosn 框架作代理网关,按照mosn的流程,在响应结束后我们只能在 Filter 的 OnDestroy 流程执行 entry.Exit()退出,但是实际上响应是在 OnDestroy之前的,如果依赖entry.Exit()内部设置的RT,实际上会有偏差,下面草图是我们的场景:
No branches or pull requests
https://github.com/alibaba/sentinel-golang/blob/master/core/stat/stat_slot.go#L68
这个位置是直接设置了rt := util.CurrentTimeMillis() - ctx.StartTime(),调用方就算在前面通过 ctx.PutRT也没法生效,是不是应该通过rt := ctx.RT()获取,如果已经设置过了,就不用覆盖会好一些?
The text was updated successfully, but these errors were encountered: