internal

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTracer

func InitTracer() func() []*trace.SpanData

InitTracer initializes the tracer and returns a flusher of the reported spans for further inspection. Its main purpose is to declare a tracer for TESTING.

Types

type Recorder

type Recorder struct {
	// contains filtered or unexported fields
}

Recorder records spans being exporter through the Exporter interface.

func (*Recorder) ExportSpan

func (r *Recorder) ExportSpan(s *trace.SpanData)

ExportSpan records a span

func (*Recorder) Flush

func (r *Recorder) Flush() []*trace.SpanData

Flush returns the current recorded spans and reset the recordings

Jump to

Keyboard shortcuts

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