MetricSnapshotRepository
Metric decorator for snapshot repositories that collects metrics on snapshot storage and retrieval operations. This class wraps a SnapshotRepository implementation and adds metrics collection with tags for aggregate name and source identification to track snapshot repository performance.
Properties
Functions
Gets the version of the latest snapshot for the specified aggregate ID and collects metrics on the operation. Metrics collected include timing and tags for aggregate identification.
Wraps a SnapshotRepository with metrics collection capabilities. Returns a MetricSnapshotRepository that collects metrics on snapshot storage operations.
Scans for aggregate IDs in the snapshot repository starting after the specified ID and collects metrics on the operation. Metrics collected include timing and tags for aggregate identification.
Extension function to tag a Flux publisher with the current source identifier. This adds the source tag to metrics collected from this reactive stream.
Extension function to tag a Mono publisher with the current source identifier. This adds the source tag to metrics collected from this reactive stream.