package syncfloat64

import "go.opentelemetry.io/otel/metric/instrument/syncfloat64"

Package syncfloat64 provides synchronous instruments that accept float64 measurments.

Deprecated: Use the instruments provided by go.opentelemetry.io/otel/metric/instrument instead.

Index

Types

type Counter

type Counter interface {
	// Add records a change to the counter.
	Add(ctx context.Context, incr float64, attrs ...attribute.KeyValue)

	instrument.Synchronous
}

Counter is an instrument that records increasing values.

Warning: methods may be added to this interface in minor releases.

Deprecated: Use the Float64Counter in go.opentelemetry.io/otel/metric/instrument instead.

type Histogram

type Histogram interface {
	// Record adds an additional value to the distribution.
	Record(ctx context.Context, incr float64, attrs ...attribute.KeyValue)

	instrument.Synchronous
}

Histogram is an instrument that records a distribution of values.

Warning: methods may be added to this interface in minor releases.

Deprecated: Use the Float64Histogram in go.opentelemetry.io/otel/metric/instrument instead.

type UpDownCounter

type UpDownCounter interface {
	// Add records a change to the counter.
	Add(ctx context.Context, incr float64, attrs ...attribute.KeyValue)

	instrument.Synchronous
}

UpDownCounter is an instrument that records increasing or decreasing values.

Warning: methods may be added to this interface in minor releases.

Deprecated: Use the Float64UpDownCounter in go.opentelemetry.io/otel/metric/instrument instead.

Source Files

syncfloat64.go

Version
v0.35.0
Published
Jan 29, 2023
Platform
linux/amd64
Imports
3 packages
Last checked
2 hours ago

Tools for package owners.