MetricSnapshotStrategy
class MetricSnapshotStrategy(val delegate: SnapshotStrategy) : SnapshotStrategy, Decorator<SnapshotStrategy>
Metric decorator for snapshot strategies that collects metrics on snapshot strategy operations. This class wraps a SnapshotStrategy and adds metrics collection with tags for aggregate name to track snapshot strategy performance and success rates.
Functions
Link copied to clipboard
Wraps a SnapshotStrategy with metrics collection capabilities. Returns a MetricSnapshotStrategy that collects metrics on snapshot strategy operations.
Link copied to clipboard
Processes a state event exchange for snapshot strategy evaluation and collects metrics on the operation. Metrics collected include timing, success/failure rates, and tags for aggregate identification.