mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-12 10:04:29 +02:00
36904e4463
* Dep async/sync pkgs for new inst in instrument pkg * Replace use of deprecated instruments * Add changelog entry * Update changelog entry PR number
56 lines
2.4 KiB
Go
56 lines
2.4 KiB
Go
// Copyright The OpenTelemetry Authors
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
// Package asyncfloat64 provides asynchronous instruments that accept float64
|
|
// measurments.
|
|
//
|
|
// Deprecated: Use the instruments provided by
|
|
// go.opentelemetry.io/otel/metric/instrument instead.
|
|
package asyncfloat64 // import "go.opentelemetry.io/otel/metric/instrument/asyncfloat64"
|
|
|
|
import "go.opentelemetry.io/otel/metric/instrument"
|
|
|
|
// Counter is an instrument used to asynchronously record increasing float64
|
|
// measurements once per a measurement collection cycle. The Observe method is
|
|
// used to record the measured state of the instrument when it is called.
|
|
// Implementations will assume the observed value to be the cumulative sum of
|
|
// the count.
|
|
//
|
|
// Warning: methods may be added to this interface in minor releases.
|
|
//
|
|
// Deprecated: Use the Float64ObservableCounter in
|
|
// go.opentelemetry.io/otel/metric/instrument instead.
|
|
type Counter interface{ instrument.Float64Observer }
|
|
|
|
// UpDownCounter is an instrument used to asynchronously record float64
|
|
// measurements once per a measurement collection cycle. The Observe method is
|
|
// used to record the measured state of the instrument when it is called.
|
|
// Implementations will assume the observed value to be the cumulative sum of
|
|
// the count.
|
|
//
|
|
// Warning: methods may be added to this interface in minor releases.
|
|
//
|
|
// Deprecated: Use the Float64ObservableUpDownCounter in
|
|
// go.opentelemetry.io/otel/metric/instrument instead.
|
|
type UpDownCounter interface{ instrument.Float64Observer }
|
|
|
|
// Gauge is an instrument used to asynchronously record instantaneous float64
|
|
// measurements once per a measurement collection cycle.
|
|
//
|
|
// Warning: methods may be added to this interface in minor releases.
|
|
//
|
|
// Deprecated: Use the Float64ObservableGauge in
|
|
// go.opentelemetry.io/otel/metric/instrument instead.
|
|
type Gauge interface{ instrument.Float64Observer }
|