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 Details

    • createCreateSagaInstanceSpan

      Span createCreateSagaInstanceSpan(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

      Span createInvokeSagaSpan(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.