-
Notifications
You must be signed in to change notification settings - Fork 26.4k
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
add metrics enable switch #12389
add metrics enable switch #12389
Conversation
...trics/dubbo-metrics-default/src/main/java/org/apache/dubbo/metrics/filter/MetricsFilter.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## 3.2 #12389 +/- ##
============================================
- Coverage 69.50% 69.36% -0.15%
+ Complexity 339 2 -337
============================================
Files 3466 1623 -1843
Lines 163719 67001 -96718
Branches 27453 9817 -17636
============================================
- Hits 113799 46475 -67324
+ Misses 39937 16028 -23909
+ Partials 9983 4498 -5485 see 1876 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
...trics/dubbo-metrics-default/src/main/java/org/apache/dubbo/metrics/filter/MetricsFilter.java
Outdated
Show resolved
Hide resolved
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
@@ -1002,7 +1002,7 @@ void testMetaData() throws Exception { | |||
List<Class<? extends AbstractConfig>> configClasses = Arrays.asList(ApplicationConfig.class, | |||
ConsumerConfig.class, ProviderConfig.class, ReferenceConfig.class, ServiceConfig.class, | |||
ProtocolConfig.class, RegistryConfig.class, ConfigCenterConfig.class, MetadataReportConfig.class, | |||
ModuleConfig.class, SslConfig.class, MetricsConfig.class, MonitorConfig.class, MethodConfig.class); | |||
ModuleConfig.class, SslConfig.class, MonitorConfig.class, MethodConfig.class); |
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.
Why change this?
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.
Is there any problem if set null as default?
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.
Fixed
Kudos, SonarCloud Quality Gate passed! |
What is the purpose of the change
If user use custom metrics component, we need support switch for default MetricsFilter.
The default value of enabled is true.
Brief changelog
Verifying this change
Checklist