<?xml version="1.0" encoding="UTF-8"?>
<profiler-configuration>
    <enhancer>http</enhancer>
    <ruleset if-enhancer="http">
        <!--apache + spring.webapplicationtype=servlet-->
        <rule>
            <class>reactor.netty.http.server.HttpTrafficHandler</class>
            <method>channelRead</method>
            <execute-after exception="true">channelRead$profiler(p1, p2,throwable)</execute-after>
            <start-endpoint/>
        </rule>
        <!--netty + spring.webapplicationtype=reactive-->
        <rule>
            <class>io.netty.channel.nio.NioEventLoop</class>
            <method>runAllTasks</method>
            <minimum-method-size>0</minimum-method-size>
        </rule>
        <!--apache + spring.webapplicationtype=reactive-->
        <rule>
            <class>org.apache.tomcat.util.net.SocketProcessorBase</class>
            <method>run</method>
            <minimum-method-size>0</minimum-method-size>
        </rule>
    </ruleset>
</profiler-configuration>
