diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/ReactorNettyConfiguration.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/ReactorNettyConfiguration.java new file mode 100644 index 000000000000..430ea5c3992f --- /dev/null +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/ReactorNettyConfiguration.java @@ -0,0 +1,15 @@ +package com.appsmith.server.configurations; + +import org.springframework.boot.web.embedded.netty.NettyReactiveWebServerFactory; +import org.springframework.boot.web.server.WebServerFactoryCustomizer; +import org.springframework.stereotype.Component; + +import java.util.function.Function; + +@Component +public class ReactorNettyConfiguration implements WebServerFactoryCustomizer { + @Override + public void customize(NettyReactiveWebServerFactory factory) { + factory.addServerCustomizers(httpServer -> httpServer.metrics(true, Function.identity())); + } +}