MetricSnapshotHandler

Metric decorator for snapshot handlers that collects metrics on snapshot processing operations. This class wraps a SnapshotHandler and adds metrics collection with tags for aggregate name to track snapshot handling performance and success rates.

Constructors

Link copied to clipboard
constructor(delegate: SnapshotHandler)

Properties

Link copied to clipboard
open override val delegate: SnapshotHandler

the underlying snapshot handler implementation

Functions

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

Handles a state event exchange for snapshot creation and collects metrics on the operation. Metrics collected include timing, success/failure rates, and tags for aggregate identification.

Link copied to clipboard

Wraps a SnapshotHandler with metrics collection capabilities. Returns a MetricSnapshotHandler that collects metrics on snapshot handling operations.