Documentation
¶
Overview ¶
tracetest is a testing helper package for the SDK. User can configure no-op or in-memory exporters to verify different SDK behaviors or custom instrumentation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryExporter ¶
type InMemoryExporter struct {
// contains filtered or unexported fields
}
InMemoryExporter is an exporter that stores all received spans in-memory.
func NewInMemoryExporter ¶
func NewInMemoryExporter() *InMemoryExporter
NewInMemoryExporter returns a new InMemoryExporter.
func (*InMemoryExporter) ExportSpans ¶
ExportSpans handles export of SpanData by storing it in memory.
func (*InMemoryExporter) GetSpans ¶
func (imsb *InMemoryExporter) GetSpans() []*trace.SpanData
GetSpans returns the current in-memory stored spans.
func (*InMemoryExporter) Reset ¶
func (imsb *InMemoryExporter) Reset()
Reset the current in-memory storage.
type NoopExporter ¶
type NoopExporter struct{}
NoopExporter is an exporter that drops all received SpanData and performs no action.
func NewNoopExporter ¶
func NewNoopExporter() *NoopExporter
NewNoopExporter returns a new no-op exporter.
func (*NoopExporter) ExportSpans ¶
ExportSpans handles export of SpanData by dropping it.
Click to show internal directories.
Click to hide internal directories.