metrics

package
v1.45.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadMetricsDecorator

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

ReadMetricsDecorator wraps a metricsstore.Reader and collects metrics around each read operation.

func NewReadMetricsDecorator

func NewReadMetricsDecorator(reader metricsstore.Reader, metricsFactory metrics.Factory) *ReadMetricsDecorator

NewReadMetricsDecorator returns a new ReadMetricsDecorator.

func (*ReadMetricsDecorator) GetCallRates

GetCallRates implements metricsstore.Reader#GetCallRates

func (*ReadMetricsDecorator) GetErrorRates

GetErrorRates implements metricsstore.Reader#GetErrorRates

func (*ReadMetricsDecorator) GetLatencies

GetLatencies implements metricsstore.Reader#GetLatencies

func (*ReadMetricsDecorator) GetMinStepDuration

GetMinStepDuration implements metricsstore.Reader#GetMinStepDuration

Jump to

Keyboard shortcuts

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