opencensus

package
v0.0.0-...-468a20b Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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.

Jump to

Keyboard shortcuts

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