-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Annotation supports method name as default resource name #187
Conversation
Add rule configuration support for parameter flow control in Sentinel…
Fix the wrong coordinate scaling of QPS chart (passed/blocked) in das…
Hi, thanks for your contribution. Please fill the PR description as the PR template described. And please open a related issue then link it in this PR. See contribution guidelines for detail :) Also please sign the CLA. |
Codecov Report
@@ Coverage Diff @@
## master #187 +/- ##
=========================================
Coverage 50.29% 50.29%
Complexity 820 820
=========================================
Files 140 140
Lines 4772 4772
Branches 679 679
=========================================
Hits 2400 2400
Misses 2083 2083
Partials 289 289 Continue to review full report at Codecov.
|
merge alibaba
return resourceName; | ||
} | ||
StringBuilder buf = new StringBuilder(64); | ||
buf.append(method.getDeclaringClass().getName()) |
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.
Here you can just use MethodUtil.getMethodName(method)
to get its method representation, which will cache the method name for better performance.
buf.append(method.getDeclaringClass().getName()) | |
return MethodUtil.getMethodName(method); |
Merge pull request
Add support for authority rule configuration in Sentinel Dashboard (#…
Thanks for contributing. I'll enhance the code later. |
Thank you |
Describe what this PR does / why we need it
通过注解方式时,希望可以不指定资源名,而当前时必须指定的。
指定资源名我认为是一个很麻烦的事情,必须要防止资源名相同,但是当一个项目中有多个相同名称的时,而且是不通的人开发,就有可能出现两者指定的资源名是相同的,所以建议可以不用指定资源名称,默认取当前资源完全限定名,就如 dubbo filter 中一样,这样也许更方便
Does this pull request fix one issue?
Describe how you did it
在不指定的时,默认取当前资源完全限定名
Describe how to verify it
在资源上@SentinelResource , 可在dashboard 中查看资源名称
Special notes for reviews