Interface ProcessorComponent

    • Method Detail

      • canHandle

        boolean canHandle​(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)
      • withConfigurationComponentLocator

        ProcessorComponent withConfigurationComponentLocator​(org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator)
      • getStartTraceComponent

        TraceComponent getStartTraceComponent​(org.mule.runtime.api.notification.EnrichedServerNotification notification)
        Build a TraceComponent for start of a flow-like container or a message processor.
        Parameters:
        notification - EnrichedServerNotification
        Returns:
        TraceComponent
      • getStartTraceComponent

        TraceComponent getStartTraceComponent​(org.mule.runtime.api.component.Component component,
                                              org.mule.runtime.api.message.Message message,
                                              String correlationId)
      • getSourceStartTraceComponent

        default TraceComponent getSourceStartTraceComponent​(org.mule.runtime.api.notification.EnrichedServerNotification notification,
                                                            TraceContextHandler traceContextHandler)
        If a message processor has a source variation, then this implementation can do more processing of a component.
        Parameters:
        notification - EnrichedServerNotification
        traceContextHandler - TraceContextHandler to help extract OpenTelemetry context
        Returns:
        TraceComponent
      • getSourceEndTraceComponent

        default TraceComponent getSourceEndTraceComponent​(org.mule.runtime.api.notification.EnrichedServerNotification notification,
                                                          TraceContextHandler traceContextHandler)
        For flows with a source component, this method can allow processor components to build source specific traces.
        Parameters:
        notification - EnrichedServerNotification
        traceContextHandler - TraceContextHandler
        Returns:
        TraceComponent