pipelines

package module
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 30 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetricsPipeline

func NewMetricsPipeline(c PipelineConfig) (func() error, error)

func NewTracePipeline

func NewTracePipeline(c PipelineConfig) (func() error, error)

Types

type PipelineConfig

type PipelineConfig struct {
	Endpoint        string
	Insecure        bool
	Headers         map[string]string
	Resource        *resource.Resource
	ReportingPeriod string
	Propagators     []string

	// MetricsBuiltinsEnabled indicates whether to automatically start
	// standard host and runtime metrics.
	MetricsBuiltinsEnabled bool

	// MetricsBuiltinLibraries contains strings identifying which
	// builtin metrics libraries should be started.  The entry is
	// a single hosrt name (e.g., "host", "cpu", "runtime")
	// followed by an optional major version number (e.g.,
	// "host:v0", "cpu:v0", "runtime:v0").  Short names are mapped
	// to long names internally.
	//
	// Recognized names, presently:
	//
	//  runtime: v0 is go-contrib/instrumentation/runtime
	//           v1 is lightstep/instrumentation/runtime
	//  host:    v0 is go-contrib/instrumentation/host
	//           v1 is lightstep/instrumentation/host
	//  cputime: v1 is lightstep/instrumentation/cputime
	MetricsBuiltinLibraries []string

	// TemporalityPreference is one of "cumulative", "delta", or "stateless"
	TemporalityPreference string

	// Credentials carries the TLS settings.
	Credentials credentials.TransportCredentials

	// UseLightstepMetricsSDK determines whether to use the metrics
	// SDK at ../lightstep/sdk/metric.
	UseLightstepMetricsSDK bool
}

type PipelineSetupFunc

type PipelineSetupFunc func(PipelineConfig) (func() error, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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