MetricProjectionHandler

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.

Constructors

Link copied to clipboard
constructor(delegate: ProjectionHandler)

Properties

Link copied to clipboard
open override val delegate: ProjectionHandler

the underlying projection handler implementation

Functions

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

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.