Versions in this module Expand all Collapse all v0 v0.24.2 Aug 29, 2023 v0.24.1 Dec 14, 2022 Changes in this version + const UnitBytes + const UnitDimensionless + const UnitMilliseconds + const UnitNone + const UnitSeconds + func Record(ctx context.Context, ms ...Measurement) + func RecordWithOptions(ctx context.Context, ros ...Options) error + func RecordWithTags(ctx context.Context, mutators []tag.Mutator, ms ...Measurement) error + type Float64Measure struct + func Float64(name, description, unit string) *Float64Measure + func (m *Float64Measure) Description() string + func (m *Float64Measure) M(v float64) Measurement + func (m *Float64Measure) Name() string + func (m *Float64Measure) Unit() string + type Int64Measure struct + func Int64(name, description, unit string) *Int64Measure + func (m *Int64Measure) Description() string + func (m *Int64Measure) M(v int64) Measurement + func (m *Int64Measure) Name() string + func (m *Int64Measure) Unit() string + type Measure interface + Description func() string + Name func() string + Unit func() string + type Measurement struct + func (m Measurement) Measure() Measure + func (m Measurement) Value() float64 + type Options func(*recordOptions) + func WithAttachments(attachments metricdata.Attachments) Options + func WithMeasurements(measurements ...Measurement) Options + func WithRecorder(meter Recorder) Options + func WithTags(mutators ...tag.Mutator) Options + type Recorder interface + Record func(*tag.Map, interface{}, map[string]interface{})