metric

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotDefinedExporter = errors.New("invalid exporter provided")

Functions

This section is empty.

Types

type Factory

type Factory map[string]generatorFunc

func NewExporterFactory

func NewExporterFactory() Factory

func (Factory) NewExporter

func (ef Factory) NewExporter(ctx context.Context, pipe *config.Export) (sdkmetric.Exporter, error)

type ShutdownExporter

type ShutdownExporter interface {
	sdkmetric.Exporter

	Shutdown(ctx context.Context) error
}

ShutdownExporter is used to help check if an exporter is able to be shutdown.

Jump to

Keyboard shortcuts

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