MetricDistributedCommandBus
Metric decorator specifically for distributed command buses. Extends MetricCommandBus to provide metrics collection for distributed command bus operations while maintaining the DistributedCommandBus interface.
Properties
the original component being decorated, must implement the Decorator interface
The topic kind for command messages, always returns TopicKind.COMMAND
Functions
Wraps a DistributedCommandBus with metrics collection capabilities. Returns a MetricDistributedCommandBus that collects metrics on command operations.
Receives command 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 command message and collects metrics on the operation. Metrics collected include timing, success/failure rates, and tags for aggregate and command 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.