-
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
Enhancement/advanced metric extension tagging entrytype #1609
Enhancement/advanced metric extension tagging entrytype #1609
Conversation
Maybe we could just refactor the original |
...el-core/src/main/java/com/alibaba/csp/sentinel/metric/extension/AdvancedMetricExtension.java
Show resolved
Hide resolved
...el-core/src/main/java/com/alibaba/csp/sentinel/metric/extension/AdvancedMetricExtension.java
Show resolved
Hide resolved
It's recommended to submit another PR for flaky test cases in sentinel-demo-quarkus module (#1623) to keep the single PR pure :) |
Get it. I will close this PR. And summit two new ones. |
@Billzaifei Any progress regarding this PR? |
Created the new one #1665. |
Describe what this PR does / why we need it
For the below interface, We implement it to export prometheus metrics.
com.alibaba.csp.sentinel.metric.extension.MetricExtension
Take the method
addPass(String resource, int n, Object... args)
for example.We want to distinguish [in] type from [out] type using it as the prometheus tag.
provider[in]/consumer[out]
Does this pull request fix one issue?
Resolves #1566
Describe how you did it
Enhance com.alibaba.csp.sentinel.metric.extension.MetricExtension with com.alibaba.csp.sentinel.metric.extension.AdvancedMetricExtension
Describe how to verify it
Run test cases.
Special notes for reviews