Class HandleRequestInterceptor

java.lang.Object
org.apache.skywalking.apm.plugin.light4j.HandleRequestInterceptor
All Implemented Interfaces:
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor

public class HandleRequestInterceptor extends Object implements org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor
HandleRequestInterceptor creates an entry span before the execution of ExceptionHandler.handleRequest(HttpServerExchange) in the I/O thread.

If the Light4JPluginConfig.Plugin.Light4J.TRACE_HANDLER_CHAIN flag is set, additionally a local span is produced for each MiddlewareHandler and business handler before their respective HttpHandler.handleRequest(HttpServerExchange) method executes. Since LightHttpHandler is implemented by various middleware and business handlers and the Light4J framework delegates to these in succession, a chain of LocalSpans will be produced.

  • Constructor Details

    • HandleRequestInterceptor

      public HandleRequestInterceptor()
  • Method Details

    • beforeMethod

      public void beforeMethod(org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.MethodInterceptResult result)
      Specified by:
      beforeMethod in interface org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor
    • afterMethod

      public Object afterMethod(org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Object ret)
      Specified by:
      afterMethod in interface org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor
    • handleMethodException

      public void handleMethodException(org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Throwable t)
      Specified by:
      handleMethodException in interface org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor