Class MessageProcessorTracingInterceptorFactory
- java.lang.Object
-
- com.avioconsulting.mule.opentelemetry.internal.interceptor.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 Summary
Fields Modifier and Type Field Description static StringMULE_OTEL_INTERCEPTOR_PROCESSOR_ENABLE_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description MessageProcessorTracingInterceptorFactory(MuleNotificationProcessor muleNotificationProcessor, org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.mule.runtime.api.interception.ProcessorInterceptorget()List<MuleComponent>getInterceptExclusions()List<MuleComponent>getInterceptInclusions()booleanintercept(org.mule.runtime.api.component.location.ComponentLocation location)This intercepts the first processor of root container which can be a flow or sub-flow.
-
-
-
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()
-
getInterceptExclusions
public List<MuleComponent> getInterceptExclusions()
-
getInterceptInclusions
public List<MuleComponent> getInterceptInclusions()
-
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` OrMuleNotificationProcessordoes not have a valid connection due to disabled tracing. SeeOpenTelemetryExtensionConfiguration.start().- Specified by:
interceptin interfaceorg.mule.runtime.api.interception.ProcessorInterceptorFactory- Parameters:
location-ComponentLocation- Returns:
- true if intercept
-
-