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