MetricProjectionHandler
class MetricProjectionHandler(val delegate: ProjectionHandler) : ProjectionHandler, Decorator<ProjectionHandler>
Metric decorator for projection handlers that collects metrics on projection processing operations. This class wraps a ProjectionHandler and adds metrics collection with tags for aggregate name, event name, and processor name to track projection performance and success rates.
Functions
Link copied to clipboard
Handles a domain event exchange for projection 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 ProjectionHandler with metrics collection capabilities. Returns a MetricProjectionHandler that collects metrics on projection handling operations.