Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Client ¶
func Client(opts ...Option) middleware.Middleware
Client is middleware client-side metrics.
func Server ¶
func Server(opts ...Option) middleware.Middleware
Server is middleware server-side metrics.
Types ¶
type Option ¶
type Option func(*options)
Option is metrics option.
func WithRequests ¶
func WithRequests(c metric.Int64Counter) Option
WithRequests with requests counter.
func WithSeconds ¶
func WithSeconds(c metric.Float64Histogram) Option
WithSeconds with seconds histogram.
Click to show internal directories.
Click to hide internal directories.