-
Notifications
You must be signed in to change notification settings - Fork 11
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
[feature] adding metric util and metric filter #17
[feature] adding metric util and metric filter #17
Conversation
|
||
@Bean | ||
@ConditionalOnMissingBean | ||
@ConditionalOnProperty(value = "metric.util.enable", havingValue = "true") |
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.
util doesn't need enable disable
http.log.format=json | ||
|
||
meter.util.enable=true |
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.
this property is not needed meter.util.enable=true
@ConditionalOnMissingBean | ||
@ConditionalOnProperty(value = "metric.filter.enable", havingValue = "true") | ||
public MeterFilter meterFilter(MeterFilterConfig meterFilterConfig) { | ||
return new MeterFilter() { |
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.
defining anonymous class here is not appropriate
* @since 2/13/2024 | ||
*/ | ||
public class GaugeValue { | ||
private int value = 0; |
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 thread safe?
@Validated | ||
public class MeterFilterConfig { | ||
|
||
private String[] filteredMeterNames; |
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.
using excluded in parameter names ?
} | ||
gaugeMeters.put(createKey(metricName, tags), gaugeValue); | ||
return gauge; | ||
} |
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.
README?
} | ||
} | ||
return null; |
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.
error log no meter type is selected
PRD-221992