metrics

package module
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPoint added in v0.2.4

func NewPoint() MetricsDomain.Point

func SetTag added in v0.2.4

func SetTag(ctx context.Context, key string, value any) context.Context

func WritePoint added in v0.2.4

func WritePoint(ctx context.Context, metricType string, point any) error

Types

type Metrics added in v0.2.0

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

func NewMetrics added in v0.2.0

func NewMetrics(serviceName string, hostname string) (*Metrics, error)

func (*Metrics) Connect added in v0.2.0

func (m *Metrics) Connect() error

func (*Metrics) CreateMetricPoint added in v0.2.4

func (m *Metrics) CreateMetricPoint(ctx context.Context) context.Context

func (*Metrics) NewPoint added in v0.2.4

func (m *Metrics) NewPoint() MetricsDomain.Point

func (*Metrics) SetTag added in v0.2.4

func (m *Metrics) SetTag(ctx context.Context, key string, value any) context.Context

func (*Metrics) WritePoint added in v0.2.4

func (m *Metrics) WritePoint(ctx context.Context, metricType string, point any) error

Directories

Path Synopsis
database

Jump to

Keyboard shortcuts

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