Class MuleNotificationProcessor
- java.lang.Object
-
- com.avioconsulting.mule.opentelemetry.internal.processor.MuleNotificationProcessor
-
public class MuleNotificationProcessor extends Object
Notification Processor bean. This is injected through registry-bootstrap into Extension configuration, seeOpenTelemetryExtensionConfiguration.
-
-
Field Summary
Fields Modifier and Type Field Description static StringMULE_OTEL_SPAN_PROCESSORS_ENABLE_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description MuleNotificationProcessor(org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInterceptSpannedComponents(String location)Locations that are intercepted for span creation.voidaddMeteredComponentLocation(String location)Locations that are intercepted and eligible for capturing metrics.Supplier<OpenTelemetryConnection>getConnectionSupplier()OpenTelemetryConnectiongetOpenTelemetryConnection()ProcessorComponentgetProcessorComponent(org.mule.runtime.api.component.ComponentIdentifier identifier)TraceLevelConfigurationgetTraceLevelConfiguration()voidhandleFlowEndEvent(org.mule.runtime.api.notification.PipelineMessageNotification notification)voidhandleFlowStartEvent(org.mule.runtime.api.notification.PipelineMessageNotification notification)voidhandleProcessorEndEvent(org.mule.runtime.api.notification.MessageProcessorNotification notification)voidhandleProcessorStartEvent(org.mule.runtime.api.notification.MessageProcessorNotification notification)booleanhasConnection()voidinit(OpenTelemetryConnection connection, TraceLevelConfiguration traceLevelConfiguration)
-
-
-
Field Detail
-
MULE_OTEL_SPAN_PROCESSORS_ENABLE_PROPERTY_NAME
public static final String MULE_OTEL_SPAN_PROCESSORS_ENABLE_PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
addInterceptSpannedComponents
public void addInterceptSpannedComponents(String location)
Locations that are intercepted for span creation. These will be excluded from span creation from notifications.- Parameters:
location-Stringvalue of target processor
-
addMeteredComponentLocation
public void addMeteredComponentLocation(String location)
Locations that are intercepted and eligible for capturing metrics.- Parameters:
location-Stringvalue of target processor
-
hasConnection
public boolean hasConnection()
-
getOpenTelemetryConnection
public OpenTelemetryConnection getOpenTelemetryConnection()
-
getConnectionSupplier
public Supplier<OpenTelemetryConnection> getConnectionSupplier()
-
getTraceLevelConfiguration
public TraceLevelConfiguration getTraceLevelConfiguration()
-
init
public void init(OpenTelemetryConnection connection, TraceLevelConfiguration traceLevelConfiguration)
-
handleProcessorStartEvent
public void handleProcessorStartEvent(org.mule.runtime.api.notification.MessageProcessorNotification notification)
-
getProcessorComponent
public ProcessorComponent getProcessorComponent(org.mule.runtime.api.component.ComponentIdentifier identifier)
-
handleProcessorEndEvent
public void handleProcessorEndEvent(org.mule.runtime.api.notification.MessageProcessorNotification notification)
-
handleFlowStartEvent
public void handleFlowStartEvent(org.mule.runtime.api.notification.PipelineMessageNotification notification)
-
handleFlowEndEvent
public void handleFlowEndEvent(org.mule.runtime.api.notification.PipelineMessageNotification notification)
-
-