use of org.springframework.boot.actuate.autoconfigure.metrics.OnlyOnceLoggingDenyMeterFilter in project spring-boot by spring-projects.
the class WebFluxMetricsAutoConfiguration method metricsHttpServerUriTagFilter.
@Bean
@Order(0)
public MeterFilter metricsHttpServerUriTagFilter() {
String metricName = this.properties.getWeb().getServer().getRequest().getMetricName();
MeterFilter filter = new OnlyOnceLoggingDenyMeterFilter(() -> String.format("Reached the maximum number of URI tags for '%s'.", metricName));
return MeterFilter.maximumAllowableTags(metricName, "uri", this.properties.getWeb().getServer().getMaxUriTags(), filter);
}
use of org.springframework.boot.actuate.autoconfigure.metrics.OnlyOnceLoggingDenyMeterFilter in project spring-boot by spring-projects.
the class WebMvcMetricsAutoConfiguration method metricsHttpServerUriTagFilter.
@Bean
@Order(0)
public MeterFilter metricsHttpServerUriTagFilter() {
String metricName = this.properties.getWeb().getServer().getRequest().getMetricName();
MeterFilter filter = new OnlyOnceLoggingDenyMeterFilter(() -> String.format("Reached the maximum number of URI tags for '%s'.", metricName));
return MeterFilter.maximumAllowableTags(metricName, "uri", this.properties.getWeb().getServer().getMaxUriTags(), filter);
}
use of org.springframework.boot.actuate.autoconfigure.metrics.OnlyOnceLoggingDenyMeterFilter in project spring-boot by spring-projects.
the class HttpClientMetricsAutoConfiguration method metricsHttpClientUriTagFilter.
@Bean
@Order(0)
public MeterFilter metricsHttpClientUriTagFilter(MetricsProperties properties) {
String metricName = properties.getWeb().getClient().getRequest().getMetricName();
MeterFilter denyFilter = new OnlyOnceLoggingDenyMeterFilter(() -> String.format("Reached the maximum number of URI tags for '%s'. Are you using 'uriVariables'?", metricName));
return MeterFilter.maximumAllowableTags(metricName, "uri", properties.getWeb().getClient().getMaxUriTags(), denyFilter);
}
use of org.springframework.boot.actuate.autoconfigure.metrics.OnlyOnceLoggingDenyMeterFilter in project cxf by apache.
the class MicrometerMetricsAutoConfiguration method cxfMetricsMaxAllowedServerUriTagsFilter.
@Bean
@Order(0)
public MeterFilter cxfMetricsMaxAllowedServerUriTagsFilter() {
String metricName = this.properties.getMetrics().getServer().getRequestsMetricName();
MeterFilter filter = new OnlyOnceLoggingDenyMeterFilter(() -> String.format("Reached the maximum number of URI tags for '%s'.", metricName));
return MeterFilter.maximumAllowableTags(metricName, "uri", this.properties.getMetrics().getServer().getMaxUriTags(), filter);
}
use of org.springframework.boot.actuate.autoconfigure.metrics.OnlyOnceLoggingDenyMeterFilter in project cxf by apache.
the class MicrometerMetricsAutoConfiguration method cxfMetricsMaxAllowedClientUriTagsFilter.
@Bean
@Order(0)
public MeterFilter cxfMetricsMaxAllowedClientUriTagsFilter() {
String metricName = this.properties.getMetrics().getClient().getRequestsMetricName();
MeterFilter filter = new OnlyOnceLoggingDenyMeterFilter(() -> String.format("Reached the maximum number of URI tags for '%s'.", metricName));
return MeterFilter.maximumAllowableTags(metricName, "uri", this.properties.getMetrics().getClient().getMaxUriTags(), filter);
}
Aggregations