otel

package
v0.0.0-...-1334a7b Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnitMillisecond   = unit("ms")
	UnitByte          = unit("byte")
	UnitDimensionless = unit("1")
)

Variables

This section is empty.

Functions

func NewMetricKey

func NewMetricKey(name string, u unit, desc string) *metricKey

Types

type ICounter

type ICounter interface {
	IncrInt(int64, ...attribute.KeyValue)
	IncrFloat(float64, ...attribute.KeyValue)
	Async(func(context.Context, ICounter))
}

func GetCounter

func GetCounter(key *metricKey) ICounter

type IGauge

type IGauge interface {
	IncrInt(int64, ...attribute.KeyValue)
	IncrFloat(float64, ...attribute.KeyValue)
	Async(func(context.Context, IGauge))
}

func GetGauge

func GetGauge(key *metricKey) IGauge

type IHistogram

type IHistogram interface {
	RecordInt(int64, ...attribute.KeyValue)
	RecordFloat(float64, ...attribute.KeyValue)
	Async(func(context.Context, IHistogram))
}

func GetHistogram

func GetHistogram(key *metricKey) IHistogram

Jump to

Keyboard shortcuts

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