Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(registerer prometheus.Registerer, toRegister ...prometheus.Collector) error
Types ¶
type MultiCounter ¶ added in v16.2.0
type MultiCounter []Counter
MultiCounter wraps multiple counters into "one" This is can be useful when having a prometheus and a usage_metric counter for the same metric.
func NewMultiCounter ¶ added in v16.2.0
func NewMultiCounter(counters ...Counter) MultiCounter
NewMultiCounter wraps multiple counters into a single one. Every call to Inc() will be dispatched to each counter.
func (MultiCounter) Inc ¶ added in v16.2.0
func (m MultiCounter) Inc()
type OtelErrorHandler ¶
func (*OtelErrorHandler) Handle ¶
func (h *OtelErrorHandler) Handle(err error)
Click to show internal directories.
Click to hide internal directories.