telemetry

package
v8.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 7 Imported by: 35

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CountView = view.Count
View Source
var ErrNoMeasurements = errors.New("no measurements provided")

ErrNoMeasurements is the error from Census.Record when no measurements were provided

View Source
var Int64 = stats.Int64
View Source
var MustNewTagKey = tag.MustNewKey
View Source
var NewTagKey = tag.NewKey
View Source
var RegisterView = view.Register
View Source
var StringAttribute = trace.StringAttribute

Functions

This section is empty.

Types

type Census

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

func NewCensus

func NewCensus(opts Options) *Census

func (*Census) AddSpanAttributes

func (c *Census) AddSpanAttributes(span *trace.Span, keyvals ...string)

func (*Census) Flush

func (c *Census) Flush()

func (*Census) Record

func (c *Census) Record(ctx context.Context, ms []Measurement, tags ...Tag) error

func (*Census) StartClientSpan

func (c *Census) StartClientSpan(ctx context.Context, name string, keyvals ...string) (context.Context, *trace.Span)

func (*Census) StartSpan

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

type Measurement

type Measurement = stats.Measurement

type Options

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

type SpanData

type SpanData = trace.SpanData

type Tag

type Tag struct {
	Key TagKey
	Val string
}

type TagKey

type TagKey = tag.Key

type TraceExporter

type TraceExporter = trace.Exporter

type View

type View = view.View

type ViewData

type ViewData = view.Data

type ViewExporter

type ViewExporter = view.Exporter

Jump to

Keyboard shortcuts

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