metrics

package
v1.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWrapper

func NewWrapper(opts ...Option) broker.Wrapper

NewWrapper returns a metric wrapper for broker

Types

type Option

type Option func(options *options)

Option is metrics option.

func WithAddr

func WithAddr(address string) Option

WithAddr with addr label.

func WithConsumerCounter

func WithConsumerCounter(counter metrics.Counter) Option

WithConsumerCounter with messaging consumer metric millisecond.

func WithConsumerObserver

func WithConsumerObserver(observer metrics.Observer) Option

WithConsumerObserver with messaging consumer metric requests.

func WithProducerCounter

func WithProducerCounter(counter metrics.Counter) Option

WithProducerCounter with messaging producer metric millisecond.

func WithProducerObserver

func WithProducerObserver(observer metrics.Observer) Option

WithProducerObserver with messaging producer metric requests.

func WithQueue

func WithQueue(queue string) Option

WithQueue with queue label.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL