package metric
import "go.opentelemetry.io/otel/internal/metric"
Index ¶
- type Batch
- type Handle
- type Instrument
- func (i *Instrument) AcquireHandle(labels apimetric.LabelSet) apimetric.HandleImpl
- func (i *Instrument) RecordOne(ctx context.Context, number core.Number, labels apimetric.LabelSet)
- type Kind
- type LabelSet
- type Measurement
- type Meter
- func NewMeter() *Meter
- func (m *Meter) Labels(labels ...core.KeyValue) apimetric.LabelSet
- func (m *Meter) NewFloat64Counter(name string, cos ...apimetric.CounterOptionApplier) apimetric.Float64Counter
- func (m *Meter) NewFloat64Gauge(name string, gos ...apimetric.GaugeOptionApplier) apimetric.Float64Gauge
- func (m *Meter) NewFloat64Measure(name string, mos ...apimetric.MeasureOptionApplier) apimetric.Float64Measure
- func (m *Meter) NewInt64Counter(name string, cos ...apimetric.CounterOptionApplier) apimetric.Int64Counter
- func (m *Meter) NewInt64Gauge(name string, gos ...apimetric.GaugeOptionApplier) apimetric.Int64Gauge
- func (m *Meter) NewInt64Measure(name string, mos ...apimetric.MeasureOptionApplier) apimetric.Int64Measure
- func (m *Meter) RecordBatch(ctx context.Context, labels apimetric.LabelSet, measurements ...apimetric.Measurement)
Types ¶
type Batch ¶
type Batch struct { Ctx context.Context LabelSet *LabelSet Measurements []Measurement }
type Handle ¶
type Handle struct { Instrument *Instrument LabelSet *LabelSet }
func (*Handle) RecordOne ¶
func (*Handle) Release ¶
func (h *Handle) Release()
type Instrument ¶
func (*Instrument) AcquireHandle ¶
func (i *Instrument) AcquireHandle(labels apimetric.LabelSet) apimetric.HandleImpl
func (*Instrument) RecordOne ¶
type Kind ¶
type Kind int8
type LabelSet ¶
func (*LabelSet) Meter ¶
type Measurement ¶
type Measurement struct { Instrument *Instrument Number core.Number }
type Meter ¶
type Meter struct { MeasurementBatches []Batch }
func NewMeter ¶
func NewMeter() *Meter
func (*Meter) Labels ¶
func (*Meter) NewFloat64Counter ¶
func (m *Meter) NewFloat64Counter(name string, cos ...apimetric.CounterOptionApplier) apimetric.Float64Counter
func (*Meter) NewFloat64Gauge ¶
func (m *Meter) NewFloat64Gauge(name string, gos ...apimetric.GaugeOptionApplier) apimetric.Float64Gauge
func (*Meter) NewFloat64Measure ¶
func (m *Meter) NewFloat64Measure(name string, mos ...apimetric.MeasureOptionApplier) apimetric.Float64Measure
func (*Meter) NewInt64Counter ¶
func (m *Meter) NewInt64Counter(name string, cos ...apimetric.CounterOptionApplier) apimetric.Int64Counter
func (*Meter) NewInt64Gauge ¶
func (m *Meter) NewInt64Gauge(name string, gos ...apimetric.GaugeOptionApplier) apimetric.Int64Gauge
func (*Meter) NewInt64Measure ¶
func (m *Meter) NewInt64Measure(name string, mos ...apimetric.MeasureOptionApplier) apimetric.Int64Measure
func (*Meter) RecordBatch ¶
func (m *Meter) RecordBatch(ctx context.Context, labels apimetric.LabelSet, measurements ...apimetric.Measurement)
Source Files ¶
mock.go
- Version
- v0.1.2
- Published
- Nov 18, 2019
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 3 minutes ago –
Tools for package owners.