Documentation ¶
Overview ¶
Package prometheus is Twirp server hook that collects Prometheus metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustRegister ¶
func MustRegister(registerer prometheus.Registerer)
MustRegister registers the metrics with the registerer. The default registry is used if registerer is nil.
func NewServerHooks ¶
func NewServerHooks(registerer prometheus.Registerer) *twirp.ServerHooks
NewServerHooks initializes twirp server hooks that record prometheus metrics of twirp operations.
The default registry is used if registerer is nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.