telemetry

package
v0.128.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cause added in v0.115.0

func Cause(err error) attribute.KeyValue

func Error added in v0.115.0

func Error(msg string) attribute.KeyValue

Types

type Attributes added in v0.115.0

type Attributes []attribute.KeyValue

func (*Attributes) Set added in v0.115.0

func (a *Attributes) Set(attr attribute.KeyValue)

type Counter added in v0.115.0

type Counter struct{ metric.Int64Counter }

func (Counter) Inc added in v0.115.0

func (c Counter) Inc(ctx context.Context, attrs ...attribute.KeyValue)

type Metrics

type Metrics struct {
	*metadata.TelemetryBuilder
	// contains filtered or unexported fields
}

func New

func (*Metrics) Datapoints added in v0.115.0

func (m *Metrics) Datapoints() Counter

func (*Metrics) WithTracked added in v0.115.0

func (m *Metrics) WithTracked(streams func() int)

Jump to

Keyboard shortcuts

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