Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientStatsHandler ¶
func ClientStatsHandler() *promgrpc.StatsHandler
ClientStatsHandler is a simplified promgrpc.ClientStatsHandler().
func Register ¶
func Register(registerer prometheus.Registerer, toRegister ...prometheus.Collector) error
func ServerStatsHandler ¶
func ServerStatsHandler() *promgrpc.StatsHandler
ServerStatsHandler is a simplified promgrpc.ServerStatsHandler().
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.