Class MuleCoreProcessorComponent
- java.lang.Object
-
- com.avioconsulting.mule.opentelemetry.internal.processor.AbstractProcessorComponent
-
- com.avioconsulting.mule.opentelemetry.internal.processor.MuleCoreProcessorComponent
-
- All Implemented Interfaces:
ProcessorComponent
public class MuleCoreProcessorComponent extends AbstractProcessorComponent
This processor handles any specific operations or sources from Mule Core namespace that are needed for overall tracing. Spans for these processors will be generated irrespective of spanAllProcessors flag on global configuration.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.avioconsulting.mule.opentelemetry.internal.processor.AbstractProcessorComponent
AbstractProcessorComponent.ContextMapGetter
-
-
Field Summary
-
Fields inherited from class com.avioconsulting.mule.opentelemetry.internal.processor.AbstractProcessorComponent
configurationComponentLocator, FLOW, NAMESPACE_MULE
-
-
Constructor Summary
Constructors Constructor Description MuleCoreProcessorComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <A> Map<String,String>getAttributes(org.mule.runtime.api.component.Component component, org.mule.runtime.api.metadata.TypedValue<A> attributes)TraceComponentgetEndTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification)Build aTraceComponentfor end of a flow-like container or a message processor.protected StringgetNamespace()protected List<String>getOperations()protected List<String>getSources()-
Methods inherited from class com.avioconsulting.mule.opentelemetry.internal.processor.AbstractProcessorComponent
addTagIfPresent, canHandle, getBaseTraceComponent, getDefaultSpanName, getProcessorCommonTags, getSourceComponent, getSourceIdentifier, getSpanKind, getStartTraceComponent, getStartTraceComponent, getTraceComponentBuilderFor, getTransactionId, namespaceSupported, operationSupported, sourceSupported, withConfigurationComponentLocator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.avioconsulting.mule.opentelemetry.api.processor.ProcessorComponent
getSourceEndTraceComponent, getSourceStartTraceComponent
-
-
-
-
Method Detail
-
getNamespace
protected String getNamespace()
- Specified by:
getNamespacein classAbstractProcessorComponent
-
getOperations
protected List<String> getOperations()
- Specified by:
getOperationsin classAbstractProcessorComponent
-
getSources
protected List<String> getSources()
- Specified by:
getSourcesin classAbstractProcessorComponent
-
getAttributes
protected <A> Map<String,String> getAttributes(org.mule.runtime.api.component.Component component, org.mule.runtime.api.metadata.TypedValue<A> attributes)
- Overrides:
getAttributesin classAbstractProcessorComponent
-
getEndTraceComponent
public TraceComponent getEndTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification)
Description copied from interface:ProcessorComponentBuild aTraceComponentfor end of a flow-like container or a message processor. This may need light processing compared toProcessorComponent.getStartTraceComponent(EnrichedServerNotification).- Specified by:
getEndTraceComponentin interfaceProcessorComponent- Overrides:
getEndTraceComponentin classAbstractProcessorComponent- Parameters:
notification-EnrichedServerNotification- Returns:
TraceComponent
-
-