tracingtest

package
v0.0.0-...-65468f9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package tracingtest provides helpers for testing opencensus tracing instrumentation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

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

Exporter is an in-memory implementation of trace.Exporter suitable for verifying opencensus tracing calls in unit tests.

func (*Exporter) ExportSpan

func (tte *Exporter) ExportSpan(s *trace.SpanData)

func (*Exporter) SpanData

func (tte *Exporter) SpanData() []*trace.SpanData

SpanData returns any SpanData exported so far.

Jump to

Keyboard shortcuts

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