metrics

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Meter is the default Flipt-wide otel metric Meter.

Functions

This section is empty.

Types

type MustAsyncInt64InstrumentProvider

type MustAsyncInt64InstrumentProvider interface {
	// Counter creates an instrument for recording increasing values.
	Counter(name string, opts ...instrument.Option) asyncint64.Counter
	// UpDownCounter creates an instrument for recording changes of a value.
	UpDownCounter(name string, opts ...instrument.Option) asyncint64.UpDownCounter
	// Histogram creates an instrument for recording a distribution of values.
	Gauge(name string, opts ...instrument.Option) asyncint64.Gauge
}

MustAsyncInt64InstrumentProvider is a syncint64.InstrumentProvider which panics if it cannot successfully build the requestd counter, upDownCounter or histogram.

func MustAsyncInt64

func MustAsyncInt64() MustAsyncInt64InstrumentProvider

MustAsyncInt64 returns a syncint64 instrument provider based on the global Meter. The returns provider panics instead of returning an error when it cannot build a required counter, upDownCounter or histogram.

type MustSyncInt64InstrumentProvider

type MustSyncInt64InstrumentProvider interface {
	// Counter creates an instrument for recording increasing values.
	Counter(name string, opts ...instrument.Option) syncint64.Counter
	// UpDownCounter creates an instrument for recording changes of a value.
	UpDownCounter(name string, opts ...instrument.Option) syncint64.UpDownCounter
	// Histogram creates an instrument for recording a distribution of values.
	Histogram(name string, opts ...instrument.Option) syncint64.Histogram
}

MustSyncInt64InstrumentProvider is a syncint64.InstrumentProvider which panics if it cannot successfully build the requestd counter, upDownCounter or histogram.

func MustSyncInt64

func MustSyncInt64() MustSyncInt64InstrumentProvider

MustSyncInt64 returns a syncint64 instrument provider based on the global Meter. The returns provider panics instead of returning an error when it cannot build a required counter, upDownCounter or histogram.

Jump to

Keyboard shortcuts

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