empty

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package empty provides a no-op OpenTelemetry span exporter used to keep the classic output mode uniform (a real TracerProvider with a silent exporter).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct{}

Exporter implements sdktrace.SpanExporter and drops all spans.

func NewEmptyExporter

func NewEmptyExporter() *Exporter

NewEmptyExporter returns a span exporter that does not output, store, or forward any span data.

func (*Exporter) ExportSpans

func (e *Exporter) ExportSpans(_ context.Context, _ []sdktrace.ReadOnlySpan) error

ExportSpans discards the spans.

func (*Exporter) Shutdown

func (e *Exporter) Shutdown(_ context.Context) error

Shutdown is a no-op.

Jump to

Keyboard shortcuts

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