noop

package
v0.6.0-nightly.20230401 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package noop exposes implementations of metrics which do not do anything. These types are meant to be used in tests that do not care about metrics but need a non-nil reference.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct{}

func (Counter) Inc

func (Counter) Inc(...float64)

type Gauge

type Gauge struct{}

func (Gauge) Dec

func (Gauge) Dec(...float64)

func (Gauge) Inc

func (Gauge) Inc(...float64)

func (Gauge) Set

func (Gauge) Set(float64)

type Histogram added in v0.5.0

type Histogram struct{}

func (Histogram) Observe added in v0.5.0

func (Histogram) Observe(float64)

type LabeledCounter

type LabeledCounter struct{}

func (LabeledCounter) WithValues

func (LabeledCounter) WithValues(...string) metrics.Counter

type LabeledGauge

type LabeledGauge struct{}

func (LabeledGauge) WithValues

func (LabeledGauge) WithValues(...string) metrics.Gauge

type LabeledHistogram added in v0.5.0

type LabeledHistogram struct{}

func (LabeledHistogram) WithValues added in v0.5.0

func (LabeledHistogram) WithValues(...string) metrics.Histogram

type LabeledTimer

type LabeledTimer struct{}

func (LabeledTimer) WithValues

func (LabeledTimer) WithValues(...string) metrics.Timer

type Timer

type Timer struct{}

func (Timer) Update

func (Timer) Update(time.Duration)

func (Timer) UpdateSince

func (Timer) UpdateSince(time.Time)

Jump to

Keyboard shortcuts

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