exporters

package
v0.9.1-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedCreatingInstanaExporter = errors.New("failed creating instana exporter")
	ErrUnsupportedExporterType       = errors.New("unsupported exporter type")
	ErrUnsupportedOTLPProtocol       = errors.New("unsupported OTLP protocol")
	ErrDuplicateRegistration         = errors.New("duplicate exporter registration")
	ErrFailedCreatingExporter        = errors.New("failed creating exporter")
)

Functions

func New

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

New 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.

func RegisterSpanExporterFactory

func RegisterSpanExporterFactory(name string, factory SpanExporterFactory)

Types

type SpanExporterFactory

type SpanExporterFactory func(ctx context.Context) (trace.SpanExporter, error)

Jump to

Keyboard shortcuts

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