exporters

package
v0.14.1-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedMetricExporterType = errors.New("unsupported metric exporter type")
	ErrFailedCreatingMetricExporter  = errors.New("failed creating metric exporter")
)
View Source
var (
	ErrFailedCreatingInstanaExporter = errors.New("failed creating instana exporter")
	ErrUnsupportedTracesExporterType = errors.New("unsupported traces exporter type")
	ErrUnsupportedOTLPProtocol       = errors.New("unsupported OTLP protocol")
	ErrFailedCreatingTracesExporter  = errors.New("failed creating traces exporter")
)
View Source
var ErrDuplicateRegistration = errors.New("duplicate registration")

Functions

func NewMetricReaders

func NewMetricReaders(ctx context.Context) ([]metric.Reader, error)

NewMetricReaders returns a slice of metric.Reader defined by the OTEL_METRICS_EXPORTER environment variable. An "otel" Exporter is returned if no exporter is defined for the environment variable. A no-op Exporter will be returned if "none" is defined anywhere in the environment variable.

func NewSpanExporters

func NewSpanExporters(ctx context.Context) ([]trace.SpanExporter, error)

NewSpanExporters returns a slice of trace.SpanExporters defined by the OTEL_TRACES_EXPORTER environment variable. An "otel" SpanExporter is returned if no exporter is defined for the environment variable. A no-op SpanExporter will be returned if "none" is defined anywhere in the environment variable.

Types

type FactoryFunc

type FactoryFunc[T any] func(ctx context.Context) (T, error)

Jump to

Keyboard shortcuts

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