census

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: MIT Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadExporter = errors.New("unsupported exporter")

Functions

This section is empty.

Types

type OpenCensus

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

func NewCensus

func NewCensus(deps dependencies, opts Options) *OpenCensus

func (*OpenCensus) Flush

func (c *OpenCensus) Flush()

func (*OpenCensus) Record

func (c *OpenCensus) Record(ctx context.Context, ms ...stats.Measurement)

func (*OpenCensus) StartSpan

func (c *OpenCensus) StartSpan(ctx context.Context, name string) (context.Context, *trace.Span)

type Options

type Options struct {
	StatsExporter      view.Exporter
	StatsExporterFlush func(view.Exporter)
	TraceExporter      trace.Exporter
	TraceExporterFlush func(trace.Exporter)
	TraceProbability   float64
}

Jump to

Keyboard shortcuts

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