1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-11-08 08:50:10 +01:00
Stirling-PDF/src/main/java/stirling/software/SPDF/config/MetricsConfig.java
Anthony Stirling 187b47eddd cleanups
2023-05-21 17:12:18 +01:00

24 lines
735 B
Java

package stirling.software.SPDF.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import io.micrometer.core.instrument.Meter;
import io.micrometer.core.instrument.config.MeterFilter;
import io.micrometer.core.instrument.config.MeterFilterReply;
@Configuration
public class MetricsConfig {
@Bean
public MeterFilter meterFilter() {
return new MeterFilter() {
@Override
public MeterFilterReply accept(Meter.Id id) {
if (id.getName().equals("http.requests")) {
return MeterFilterReply.NEUTRAL;
}
return MeterFilterReply.DENY;
}
};
}
}