pipelines

package module
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 23 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 "lowmemory" (a.k.a. "stateless")
	TemporalityPreference string

	// TLSSetting is the newer form.
	TLSSetting *configtls.ClientConfig

	// The Lightstep SDK is always used, the OTel-Go SDK is no longer
	// an option supported by this library.
	DeprecatedUseLightstepMetricsSDK bool
	// Credentials carries the TLS settings used by OTel-Go SDKs.
	// This is not used.
	DeprecatedCredentials credentials.TransportCredentials
}

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