mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-03-03 14:52:56 +02:00
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com> Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
44 lines
1.7 KiB
Go
44 lines
1.7 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 view // import "go.opentelemetry.io/otel/sdk/metric/view"
|
|
|
|
// InstrumentKind describes the kind of instrument a Meter can create.
|
|
type InstrumentKind uint8
|
|
|
|
// These are all the instrument kinds supported by the SDK.
|
|
const (
|
|
// undefinedInstrument is an uninitialized instrument kind, should not be used.
|
|
//nolint:deadcode,varcheck
|
|
undefinedInstrument InstrumentKind = iota
|
|
// SyncCounter is an instrument kind that records increasing values
|
|
// synchronously in application code.
|
|
SyncCounter
|
|
// SyncUpDownCounter is an instrument kind that records increasing and
|
|
// decreasing values synchronously in application code.
|
|
SyncUpDownCounter
|
|
// SyncHistogram is an instrument kind that records a distribution of
|
|
// values synchronously in application code.
|
|
SyncHistogram
|
|
// AsyncCounter is an instrument kind that records increasing values in an
|
|
// asynchronous callback.
|
|
AsyncCounter
|
|
// AsyncUpDownCounter is an instrument kind that records increasing and
|
|
// decreasing values in an asynchronous callback.
|
|
AsyncUpDownCounter
|
|
// AsyncGauge is an instrument kind that records current values in an
|
|
// asynchronous callback.
|
|
AsyncGauge
|
|
)
|