Package org.axonframework.modelling.saga
Interface SagaManagerSpanFactory
- All Known Implementing Classes:
DefaultSagaManagerSpanFactory
public interface SagaManagerSpanFactory
Span factory that creates spans for the
AbstractSagaManager. You can customize the spans of the bus by
creating your own implementation.- Since:
- 4.9.0
- Author:
- Mitchell Herrijgers
-
Method Summary
Modifier and TypeMethodDescriptionorg.axonframework.tracing.SpancreateCreateSagaInstanceSpan(org.axonframework.eventhandling.EventMessage<?> event, Class<?> sagaType, String sagaIdentifier) Creates a span that represents the creation of a new saga instance.org.axonframework.tracing.SpancreateInvokeSagaSpan(org.axonframework.eventhandling.EventMessage<?> event, Class<?> sagaType, Saga<?> saga) Creates a span that represents the invocation of a saga.
-
Method Details
-
createCreateSagaInstanceSpan
org.axonframework.tracing.Span createCreateSagaInstanceSpan(org.axonframework.eventhandling.EventMessage<?> event, Class<?> sagaType, String sagaIdentifier) Creates a span that represents the creation of a new saga instance.- Parameters:
event- The event that triggered the creation of the saga.sagaType- The type of the saga.sagaIdentifier- The identifier of the saga.- Returns:
- The created span.
-
createInvokeSagaSpan
org.axonframework.tracing.Span createInvokeSagaSpan(org.axonframework.eventhandling.EventMessage<?> event, Class<?> sagaType, Saga<?> saga) Creates a span that represents the invocation of a saga.- Parameters:
event- The event that triggered the invocation of the saga.sagaType- The type of the saga.saga- The saga that will be invoked.- Returns:
- The created span.
-