Class TopicMessageConstructorInterceptor

java.lang.Object
org.apache.skywalking.apm.plugin.pulsar.common.TopicMessageConstructorInterceptor
All Implemented Interfaces:
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceConstructorInterceptor

public class TopicMessageConstructorInterceptor extends Object implements org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceConstructorInterceptor
Interceptor of pulsar topic message constructor.

The interceptor create MessageEnhanceRequiredInfo which is required by passing message span across threads. Another purpose of this interceptor is to make ClassEnhancePluginDefine enable enhanced class to implement EnhancedInstance interface. Because if ClassEnhancePluginDefine class will not create SkyWalkingDynamicField without any constructor or method interceptor.

  • Constructor Details

    • TopicMessageConstructorInterceptor

      public TopicMessageConstructorInterceptor()
  • Method Details

    • onConstruct

      public void onConstruct(org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance objInst, Object[] allArguments)
      Specified by:
      onConstruct in interface org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceConstructorInterceptor