Package-Level Type Names (total 3, in which 1 are exported)
/* sort exporteds by: | */
Provider is a standard metric.Provider for wrapping `MeterImpl`
implmetric.MeterImpl
Meter implements metric.Provider.
*T : go.opentelemetry.io/otel/api/metric.Provider
func NewProvider(impl metric.MeterImpl) *Provider
uniqueInstrumentMeterImpl implements the metric.MeterImpl interface, adding
uniqueness checking for instrument descriptors. Use NewUniqueInstrumentMeter
to wrap an implementation with uniqueness checking.
implmetric.MeterImpllocksync.Mutexstatemap[key]metric.InstrumentImpl
NewAsyncInstrument implements metric.MeterImpl.
NewSyncInstrument implements metric.MeterImpl.
RecordBatch implements metric.MeterImpl.
checkUniqueness returns an ErrMetricKindMismatch error if there is
a conflict between a descriptor that was already registered and the
`descriptor` argument. If there is an existing compatible
registration, this returns the already-registered instrument. If
there is no conflict and no prior registration, returns (nil, nil).
*T : go.opentelemetry.io/otel/api/metric.MeterImpl
Package-Level Functions (total 5, in which 4 are exported)
Compatible determines whether two metric.Descriptors are considered
the same for the purpose of uniqueness checking.
NewMetricKindMismatchError formats an error that describes a
mismatched metric instrument definition.
NewProvider returns a new provider that implements instrument
name-uniqueness checking.
NewUniqueInstrumentMeterImpl returns a wrapped metric.MeterImpl with
the addition of uniqueness checking.
Package-Level Variables (only one, which is exported)
ErrMetricKindMismatch is the standard error for mismatched metric
instrument definitions.
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.