telemetry

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datapoints

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

type Faults

type Faults[T any] struct {
	streams.Map[T]
	*Metrics
}

func ObserveNonFatal

func ObserveNonFatal[T any](items streams.Map[T], metrics *Metrics) Faults[T]

func (Faults[T]) Store

func (f Faults[T]) Store(id streams.Ident, v T) error

type Items

type Items[T any] struct {
	streams.Map[T]
	*Metrics
}

func ObserveItems

func ObserveItems[T any](items streams.Map[T], metrics *Metrics) Items[T]

func (Items[T]) Delete

func (i Items[T]) Delete(id streams.Ident)

func (Items[T]) Store

func (i Items[T]) Store(id streams.Ident, v T) error

type Metrics

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

func (Metrics) WithLimit

func (m Metrics) WithLimit(meter metric.Meter, max int64)

func (Metrics) WithStale added in v0.99.0

func (m Metrics) WithStale(meter metric.Meter, max time.Duration)

type Streams

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

type Telemetry

type Telemetry struct {
	Metrics
}

func New

func New(meter metric.Meter) Telemetry

Jump to

Keyboard shortcuts

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