MetricLocalDomainEventBus
Metric decorator specifically for local domain event buses. Extends MetricDomainEventBus to provide metrics collection for local domain event bus operations while maintaining the LocalDomainEventBus interface.
Properties
Functions
Wraps a LocalDomainEventBus with metrics collection capabilities. Returns a MetricLocalDomainEventBus that collects metrics on domain event operations.
Receives event stream exchanges for the specified named aggregates and collects metrics on the operation. Metrics collected include timing and tags for aggregate identification and subscriber information.
Sends a domain event stream and collects metrics on the operation. Metrics collected include timing, success/failure rates, and tags for aggregate identification.
Returns the number of subscribers for the specified named aggregate. This delegates to the underlying local domain event bus implementation.
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.