MetricSnapshotHandler
class MetricSnapshotHandler(val delegate: SnapshotHandler) : SnapshotHandler, Decorator<SnapshotHandler>
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.
Functions
Link copied to clipboard
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.