Class AnypointMQProcessorComponent
- java.lang.Object
-
- com.avioconsulting.mule.opentelemetry.internal.processor.AbstractProcessorComponent
-
- com.avioconsulting.mule.opentelemetry.internal.processor.AnypointMQProcessorComponent
-
- All Implemented Interfaces:
ProcessorComponent
public class AnypointMQProcessorComponent extends AbstractProcessorComponent
-
-
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 AnypointMQProcessorComponent()
-
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)protected StringgetDefaultSpanName(Map<String,String> tags)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()TraceComponentgetSourceEndTraceComponent(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.protected List<String>getSources()TraceComponentgetSourceStartTraceComponent(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.protected io.opentelemetry.api.trace.SpanKindgetSpanKind()TraceComponentgetStartTraceComponent(org.mule.runtime.api.component.Component component, org.mule.runtime.api.message.Message message, String correlationId)Create a start trace component without the notification object.-
Methods inherited from class com.avioconsulting.mule.opentelemetry.internal.processor.AbstractProcessorComponent
addTagIfPresent, canHandle, getBaseTraceComponent, getProcessorCommonTags, getSourceComponent, getSourceIdentifier, getStartTraceComponent, getTraceComponentBuilderFor, getTransactionId, namespaceSupported, operationSupported, sourceSupported, withConfigurationComponentLocator
-
-
-
-
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
-
getSpanKind
protected io.opentelemetry.api.trace.SpanKind getSpanKind()
- Overrides:
getSpanKindin classAbstractProcessorComponent
-
getDefaultSpanName
protected String getDefaultSpanName(Map<String,String> tags)
- Overrides:
getDefaultSpanNamein classAbstractProcessorComponent
-
getStartTraceComponent
public TraceComponent getStartTraceComponent(org.mule.runtime.api.component.Component component, org.mule.runtime.api.message.Message message, String correlationId)
Description copied from class:AbstractProcessorComponentCreate a start trace component without the notification object. This is mostly consumed by interceptors.- Specified by:
getStartTraceComponentin interfaceProcessorComponent- Overrides:
getStartTraceComponentin classAbstractProcessorComponent- Parameters:
component-Componentmessage-MessagecorrelationId-String- Returns:
- TraceComponent
-
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
-
getSourceStartTraceComponent
public TraceComponent getSourceStartTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification, TraceContextHandler traceContextHandler)
Description copied from interface:ProcessorComponentIf a message processor has a source variation, then this implementation can do more processing of a component.- Parameters:
notification-EnrichedServerNotificationtraceContextHandler-TraceContextHandlerto help extract OpenTelemetry context- Returns:
TraceComponent
-
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
-
getSourceEndTraceComponent
public TraceComponent getSourceEndTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification, TraceContextHandler traceContextHandler)
Description copied from interface:ProcessorComponentFor flows with a source component, this method can allow processor components to build source specific traces.- Parameters:
notification-EnrichedServerNotificationtraceContextHandler-TraceContextHandler- Returns:
- TraceComponent
-
-