MetricStatelessSagaHandler

Metric decorator for stateless saga handlers that collects metrics on saga processing operations. This class wraps a StatelessSagaHandler and adds metrics collection with tags for aggregate name, event name, and processor name to track saga performance and success rates.

Constructors

Link copied to clipboard
constructor(delegate: StatelessSagaHandler)

Properties

Link copied to clipboard
open override val delegate: StatelessSagaHandler

the underlying stateless saga handler implementation

Functions

Link copied to clipboard
open override fun handle(exchange: DomainEventExchange<*>): Mono<Void>

Handles a domain event exchange for saga processing and collects metrics on the operation. Metrics collected include timing, success/failure rates, and tags for aggregate, event, and processor identification.

Link copied to clipboard

Wraps a StatelessSagaHandler with metrics collection capabilities. Returns a MetricStatelessSagaHandler that collects metrics on saga handling operations.