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: 14 Imported by: 0

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 wraps a server.Server with prometheus metrics.

Types

type Option

type Option func(o *Options)

func WithDisabled added in v1.0.14

func WithDisabled(disabled bool) Option

WithDisabled set disabled metrics.

func WithRequests added in v1.0.14

func WithRequests(c metrics.Counter) Option

WithRequests with requests counter.

func WithSeconds added in v1.0.14

func WithSeconds(c metrics.Observer) Option

WithSeconds with seconds histogram.

type Options

type Options struct {
	*v1.Metrics
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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