package sdkapi
import "go.opentelemetry.io/otel/metric/sdkapi"
Index ¶
Types ¶
type InstrumentKind ¶
type InstrumentKind int8
InstrumentKind describes the kind of instrument.
const ( // HistogramInstrumentKind indicates a Histogram instrument. HistogramInstrumentKind InstrumentKind = iota // GaugeObserverInstrumentKind indicates an GaugeObserver instrument. GaugeObserverInstrumentKind // CounterInstrumentKind indicates a Counter instrument. CounterInstrumentKind // UpDownCounterInstrumentKind indicates a UpDownCounter instrument. UpDownCounterInstrumentKind // CounterObserverInstrumentKind indicates a CounterObserver instrument. CounterObserverInstrumentKind // UpDownCounterObserverInstrumentKind indicates a UpDownCounterObserver // instrument. UpDownCounterObserverInstrumentKind )
func (InstrumentKind) Adding ¶
func (k InstrumentKind) Adding() bool
Adding returns whether this kind of instrument adds its inputs (as opposed to Grouping).
func (InstrumentKind) Asynchronous ¶
func (k InstrumentKind) Asynchronous() bool
Asynchronous returns whether this is an asynchronous kind of instrument.
func (InstrumentKind) Grouping ¶
func (k InstrumentKind) Grouping() bool
Grouping returns whether this kind of instrument groups its inputs (as opposed to Adding).
func (InstrumentKind) Monotonic ¶
func (k InstrumentKind) Monotonic() bool
Monotonic returns whether this kind of instrument exposes a non-decreasing sum.
func (InstrumentKind) PrecomputedSum ¶
func (k InstrumentKind) PrecomputedSum() bool
PrecomputedSum returns whether this kind of instrument receives precomputed sums.
func (InstrumentKind) String ¶
func (i InstrumentKind) String() string
func (InstrumentKind) Synchronous ¶
func (k InstrumentKind) Synchronous() bool
Synchronous returns whether this is a synchronous kind of instrument.
Source Files ¶
instrumentkind.go instrumentkind_string.go
- Version
- v0.24.0
- Published
- Oct 1, 2021
- Platform
- darwin/amd64
- Imports
- 1 packages
- Last checked
- 2 hours ago –
Tools for package owners.