telemetry

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CounterAdd

func CounterAdd(counter DeferrableCounter, delta int64, options ...metric.AddOption)

func HistogramAdd

func HistogramAdd(histogram DeferrableHistogram, delta int64, options ...metric.RecordOption)

Types

type DeferrableCounter

type DeferrableCounter interface {
	Add(delta int64, options ...metric.AddOption)
}

type DeferrableHistogram

type DeferrableHistogram interface {
	Record(delta int64, options ...metric.RecordOption)
}

type DeferrableInt64Counter

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

func NewDeferrableInt64Counter

func NewDeferrableInt64Counter(meter metric.Meter, name string, counterOptions []metric.Int64CounterOption, addOptions []metric.AddOption) (*DeferrableInt64Counter, error)

func (*DeferrableInt64Counter) Add

func (tc *DeferrableInt64Counter) Add(delta int64, options ...metric.AddOption)

type DeferrableInt64Histogram

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

func NewDeferrableHistogram

func NewDeferrableHistogram(meter metric.Meter, name string, histogramOptions []metric.Int64HistogramOption, recordOptions []metric.RecordOption) (*DeferrableInt64Histogram, error)

func (DeferrableInt64Histogram) Record

func (d DeferrableInt64Histogram) Record(delta int64, options ...metric.RecordOption)

Jump to

Keyboard shortcuts

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