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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.