census

package
v4.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CountView = view.Count
View Source
var ErrBadExporter = errors.New("unsupported exporter")
View Source
var InsertTag = tag.Insert
View Source
var Int64 = stats.Int64
View Source
var NewTag = tag.New
View Source
var NewTagKey = tag.NewKey
View Source
var RegisterView = view.Register

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, keyvals ...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
}

type SpanData added in v4.5.0

type SpanData = trace.SpanData

type TagKey added in v4.1.0

type TagKey = tag.Key

type View added in v4.1.0

type View = view.View

type ViewData added in v4.5.0

type ViewData = view.Data

Jump to

Keyboard shortcuts

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