package registry

import "go.opentelemetry.io/otel/api/metric/registry"

Index

Variables

var ErrMetricKindMismatch = fmt.Errorf(
	"A metric was already registered by this name with another kind or number type")

ErrMetricKindMismatch is the standard error for mismatched metric instrument definitions.

Functions

func Compatible

func Compatible(candidate, existing metric.Descriptor) bool

Compatible determines whether two metric.Descriptors are considered the same for the purpose of uniqueness checking.

func NewMetricKindMismatchError

func NewMetricKindMismatchError(desc metric.Descriptor) error

NewMetricKindMismatchError formats an error that describes a mismatched metric instrument definition.

func NewUniqueInstrumentMeterImpl

func NewUniqueInstrumentMeterImpl(impl metric.MeterImpl) metric.MeterImpl

NewUniqueInstrumentMeterImpl returns a wrapped metric.MeterImpl with the addition of uniqueness checking.

Source Files

registry.go

Version
v0.4.3
Published
Apr 24, 2020
Platform
linux/amd64
Imports
5 packages
Last checked
1 minute ago

Tools for package owners.