package syncint64

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

Package syncint64 provides synchronous instruments that accept int64 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 int64, 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 Int64Counter 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 int64, 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 Int64Histogram 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 int64, 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 Int64UpDownCounter in go.opentelemetry.io/otel/metric/instrument instead.

Source Files

syncint64.go

Version
v0.35.0
Published
Jan 29, 2023
Platform
js/wasm
Imports
3 packages
Last checked
8 hours ago

Tools for package owners.