package metric
import "go.opentelemetry.io/otel/internal/metric"
Index ¶
- type Async
- type Batch
- type Handle
- type Instrument
- type Measurement
- type MeterImpl
- func NewMeter() (*MeterImpl, apimetric.Meter)
- func NewProvider() (*MeterImpl, apimetric.Provider)
- func (m *MeterImpl) NewAsyncInstrument(descriptor metric.Descriptor, callback func(func(core.Number, []core.KeyValue))) (apimetric.AsyncImpl, error)
- func (m *MeterImpl) NewSyncInstrument(descriptor metric.Descriptor) (apimetric.SyncImpl, error)
- func (m *MeterImpl) RecordBatch(ctx context.Context, labels []core.KeyValue, measurements ...apimetric.Measurement)
- func (m *MeterImpl) RunAsyncInstruments()
- type MeterProvider
- type Sync
Types ¶
type Async ¶
type Async struct { Instrument // contains filtered or unexported fields }
func (*Async) Implementation ¶
func (a *Async) Implementation() interface{}
type Batch ¶
type Batch struct { // Measurement needs to be aligned for 64-bit atomic operations. Measurements []Measurement Ctx context.Context Labels []core.KeyValue LibraryName string }
type Handle ¶
func (*Handle) RecordOne ¶
func (*Handle) Unbind ¶
func (h *Handle) Unbind()
type Instrument ¶
type Instrument struct {
// contains filtered or unexported fields
}
func (Instrument) Descriptor ¶
func (i Instrument) Descriptor() apimetric.Descriptor
type Measurement ¶
type Measurement struct { // Number needs to be aligned for 64-bit atomic operations. Number core.Number Instrument apimetric.InstrumentImpl }
type MeterImpl ¶
func NewMeter ¶
func NewProvider ¶
func (*MeterImpl) NewAsyncInstrument ¶
func (m *MeterImpl) NewAsyncInstrument(descriptor metric.Descriptor, callback func(func(core.Number, []core.KeyValue))) (apimetric.AsyncImpl, error)
func (*MeterImpl) NewSyncInstrument ¶
func (*MeterImpl) RecordBatch ¶
func (m *MeterImpl) RecordBatch(ctx context.Context, labels []core.KeyValue, measurements ...apimetric.Measurement)
func (*MeterImpl) RunAsyncInstruments ¶
func (m *MeterImpl) RunAsyncInstruments()
type MeterProvider ¶
type MeterProvider struct {
// contains filtered or unexported fields
}
func (*MeterProvider) Meter ¶
func (p *MeterProvider) Meter(name string) apimetric.Meter
type Sync ¶
type Sync struct { Instrument }
func (*Sync) Bind ¶
func (s *Sync) Bind(labels []core.KeyValue) apimetric.BoundSyncImpl
func (*Sync) Implementation ¶
func (s *Sync) Implementation() interface{}
func (*Sync) RecordOne ¶
Source Files ¶
mock.go
- Version
- v0.4.3
- Published
- Apr 24, 2020
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 2 hours ago –
Tools for package owners.