meters

package
v0.0.68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package meters contains the OpenTelemetry meter factories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportingMeterFactory

type ExportingMeterFactory struct{}

ExportingMeterFactory uses the "real" OpenTelemetry metric meter

func (*ExportingMeterFactory) Build

func (_ *ExportingMeterFactory) Build(name string) metric.Meter

Build creates a meter with the specified name.

type MeterFactory

type MeterFactory interface {
	// Build creates a meter with the specified name.
	Build(name string) metric.Meter
}

MeterFactory is an interface which hides the details of creating an OpenTelemetry metrics meter. This is used to select between a real exporter or noop for testing.

type NoopMeterFactory

type NoopMeterFactory struct{}

NoopMeterFactory returns a noop metrics meter

func (*NoopMeterFactory) Build

func (_ *NoopMeterFactory) Build(_ string) metric.Meter

Build returns a noop meter implementation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL