MetricDistributedStateEventBus
Metric decorator specifically for distributed state event buses. Extends MetricStateEventBus to provide metrics collection for distributed state event bus operations while maintaining the DistributedStateEventBus interface.
Properties
Functions
Wraps a DistributedStateEventBus with metrics collection capabilities. Returns a MetricDistributedStateEventBus that collects metrics on state event operations.
Receives state event 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 state event and collects metrics on the operation. Metrics collected include timing, success/failure rates, 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.