2 years ago
#45311
Begemotik
How to enable netty metrics in Webflux application
I call Schedulers.enableMetrics() in application starter and define a bean :
@Bean
public NettyServerCustomizer nettyServerCustomizer() {
return httpServer -> httpServer.metrics(true, () -> uriMappingFunction);
}
I am not sure how to write uriMappingFunction. Could you give an example for the simple webflux application ?
java
netty
spring-webflux
metrics
0 Answers
Your Answer