Documentation
¶
Index ¶
- func NewWrapper(opts ...Option) broker.Wrapper
- type Option
- func WithAddr(address string) Option
- func WithConsumerCounter(counter metrics.Counter) Option
- func WithConsumerObserver(observer metrics.Observer) Option
- func WithProducerCounter(counter metrics.Counter) Option
- func WithProducerObserver(observer metrics.Observer) Option
- func WithQueue(queue string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWrapper ¶
NewWrapper returns a metric wrapper for broker
Types ¶
type Option ¶
type Option func(options *options)
Option is metrics option.
func WithConsumerCounter ¶
WithConsumerCounter with messaging consumer metric millisecond.
func WithConsumerObserver ¶
WithConsumerObserver with messaging consumer metric requests.
func WithProducerCounter ¶
WithProducerCounter with messaging producer metric millisecond.
func WithProducerObserver ¶
WithProducerObserver with messaging producer metric requests.
Click to show internal directories.
Click to hide internal directories.