noop

package
v0.3.0-nightly.20220920 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 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 (c Counter) Inc(vs ...float64)

type Gauge

type Gauge struct{}

func (Gauge) Dec

func (g Gauge) Dec(vs ...float64)

func (Gauge) Inc

func (g Gauge) Inc(vs ...float64)

func (Gauge) Set

func (g Gauge) Set(f float64)

type LabeledCounter

type LabeledCounter struct{}

func (LabeledCounter) WithValues

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

type LabeledGauge

type LabeledGauge struct{}

func (LabeledGauge) WithValues

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

type LabeledTimer

type LabeledTimer struct{}

func (LabeledTimer) WithValues

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

type Timer

type Timer struct{}

func (Timer) Update

func (t Timer) Update(duration time.Duration)

func (Timer) UpdateSince

func (t Timer) UpdateSince(time time.Time)

Jump to

Keyboard shortcuts

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