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 // TLSSetting is the newer form. TLSSetting *configtls.TLSClientSetting // UseLightstepMetricsSDK determines whether to use the metrics // SDK at ../lightstep/sdk/metric. UseLightstepMetricsSDK bool }
type PipelineSetupFunc ¶
type PipelineSetupFunc func(PipelineConfig) (func() error, error)
Click to show internal directories.
Click to hide internal directories.