Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindSpan ¶
func FindSpan(spans []sdktrace.ReadOnlySpan, name string) sdktrace.ReadOnlySpan
Types ¶
type RecordingExporter ¶
type RecordingExporter struct {
// contains filtered or unexported fields
}
RecordingExporter collects exported spans for test assertions.
func SetupTracer ¶
func SetupTracer(t *testing.T) *RecordingExporter
SetupTracer installs a test TracerProvider that records spans into the returned exporter. The global provider is reset to noop on test cleanup.
func (*RecordingExporter) ExportSpans ¶
func (e *RecordingExporter) ExportSpans(_ context.Context, spans []sdktrace.ReadOnlySpan) error
func (*RecordingExporter) GetSpans ¶
func (e *RecordingExporter) GetSpans() []sdktrace.ReadOnlySpan
Click to show internal directories.
Click to hide internal directories.