-
Notifications
You must be signed in to change notification settings - Fork 426
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
Fix app name in metric is unknown_go_service (#453) #457
base: master
Are you sure you want to change the base?
Conversation
Could you please fix the CI failure? |
Initialize global metric variables
"circuit_breaker_state_changed_total", | ||
"Circuit breaker total state change count", | ||
[]string{"resource", "from_state", "to_state"}) | ||
once sync.Once |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no need to use sync.Once
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I'll fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to consider putting it inside a separate instance of sentinel instead of a global instance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI 处理一下吧,有data race
删除 once 导致的,是否不应该删除呢? |
嗯嗯,目前看还是使用once吧 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
这个提交是否还有问题呢,然后什么时候能合并嘞,目前在最新的 [v1.0.4] tag 下还是有这个问题的 |
加油,需要这个修复 |
Describe what this PR does / why we need it
Does this pull request fix one issue?
Fixes #453
Describe how you did it
Describe how to verify it
Special notes for reviews