Back to

Package opencensus

Latest Go to latest

The highest tagged major version is .

Published: Jun 16, 2020 | License: MIT | Module:


type ExporterConfig

type ExporterConfig struct {
	Address         string
	Insecure        bool
	ReconnectPeriod time.Duration

ExporterConfig configures an OpenCensus exporter.

func (ExporterConfig) Options

func (c ExporterConfig) Options() []ocagent.ExporterOption

Options returns a set of OpenCensus exporter options used for configuring the exporter.

type SamplingTraceConfig

type SamplingTraceConfig struct {
	Sampler  string
	Fraction float64

SamplingTraceConfig configures OpenCensus trace sampling.

type TraceConfig

type TraceConfig struct {
	// Sampling describes the default sampler used when creating new spans.
	Sampling SamplingTraceConfig

	// MaxAnnotationEventsPerSpan is max number of annotation events per span.
	MaxAnnotationEventsPerSpan int

	// MaxMessageEventsPerSpan is max number of message events per span.
	MaxMessageEventsPerSpan int

	// MaxAnnotationEventsPerSpan is max number of attributes per span.
	MaxAttributesPerSpan int

	// MaxLinksPerSpan is max number of links per span.
	MaxLinksPerSpan int

TraceConfig configures OpenCensus tracing.

func (TraceConfig) Config

func (t TraceConfig) Config() trace.Config

Config returns an OpenCensus trace configuration.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier