metrics

package
v0.1.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: Apache-2.0, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

func New

func New(metricsAddr string, pebbleMetricsProvider func() *pebble.Metrics) (*Metrics, error)

func (*Metrics) RecordDHFindLatency added in v0.1.2

func (m *Metrics) RecordDHFindLatency(ctx context.Context, t time.Duration, method, path string, status int, firstResult bool)

func (*Metrics) RecordHttpLatency

func (m *Metrics) RecordHttpLatency(ctx context.Context, t time.Duration, method, path string, status int)

func (*Metrics) Shutdown

func (s *Metrics) Shutdown(ctx context.Context) error

func (*Metrics) Start

func (m *Metrics) Start(_ context.Context) error

Jump to

Keyboard shortcuts

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