testing

package
v0.0.0-...-42d1b00 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeZipkinExporter

func FakeZipkinExporter() (*recorder.ReporterRecorder, tracing.ConfigOption)

FakeZipkineExporter is intended to capture the testing boilerplate of building up the ConfigOption to pass NewOpenCensusTracer and expose a mechanism for examining the traces it would have reported. To set it up, use something like:

reporter, co := FakeZipkinExporter()
defer reporter.Close()
oct := NewOpenCensusTracer(co)
defer oct.Close()
// Do stuff.
spans := reporter.Flush()
// Check reported spans.

Types

This section is empty.

Jump to

Keyboard shortcuts

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