metrics

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Metrics provides access to all dial metrics.
	Metrics = newServerMetrics()
)

Functions

This section is empty.

Types

type Direction

type Direction string

type ServerMetrics

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

ServerMetrics includes all the metrics of the proxy server.

func (*ServerMetrics) ObserveDialLatency

func (a *ServerMetrics) ObserveDialLatency(elapsed time.Duration)

ObserveDialLatency records the latency of dial to the remote endpoint.

func (*ServerMetrics) Reset

func (a *ServerMetrics) Reset()

Reset resets the metrics.

Jump to

Keyboard shortcuts

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