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.
Click to show internal directories.
Click to hide internal directories.