Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
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.
Types ¶
type MeterProvider ¶ added in v0.12.0
type MeterProvider struct {
// contains filtered or unexported fields
}
MeterProvider is a standard MeterProvider for wrapping `MeterImpl`
func NewMeterProvider ¶ added in v0.12.0
func NewMeterProvider(impl metric.MeterImpl) *MeterProvider
NewMeterProvider returns a new provider that implements instrument name-uniqueness checking.
func (*MeterProvider) Meter ¶ added in v0.12.0
func (p *MeterProvider) Meter(instrumentationName string, opts ...metric.MeterOption) metric.Meter
Meter implements MeterProvider.
Click to show internal directories.
Click to hide internal directories.