Class MessageProcessorTracingInterceptorFactory

  • All Implemented Interfaces:
    Supplier<org.mule.runtime.api.interception.ProcessorInterceptor>, org.mule.runtime.api.interception.ProcessorInterceptorFactory

    @Component
    public class MessageProcessorTracingInterceptorFactory
    extends Object
    implements org.mule.runtime.api.interception.ProcessorInterceptorFactory
    ProcessorInterceptorFactory can intercept processors. This is injected registry for auto-configuration. Disable interceptor processing by setting "mule.otel.interceptor.processor.enable" to `true`. See registry-bootstrap.properties.
    • Field Detail

      • MULE_OTEL_INTERCEPTOR_PROCESSOR_ENABLE_PROPERTY_NAME

        public static final String MULE_OTEL_INTERCEPTOR_PROCESSOR_ENABLE_PROPERTY_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • MessageProcessorTracingInterceptorFactory

        @Inject
        public MessageProcessorTracingInterceptorFactory​(MuleNotificationProcessor muleNotificationProcessor,
                                                         org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator)
    • Method Detail

      • get

        public org.mule.runtime.api.interception.ProcessorInterceptor get()
        Specified by:
        get in interface Supplier<org.mule.runtime.api.interception.ProcessorInterceptor>
      • intercept

        public boolean intercept​(org.mule.runtime.api.component.location.ComponentLocation location)
        This intercepts the first processor of root container which can be a flow or sub-flow. This will not intercept if "mule.otel.interceptor.processor.enable" is set to `true` Or MuleNotificationProcessor does not have a valid connection due to disabled tracing. See OpenTelemetryExtensionConfiguration.start().
        Specified by:
        intercept in interface org.mule.runtime.api.interception.ProcessorInterceptorFactory
        Parameters:
        location - ComponentLocation
        Returns:
        true if intercept