Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMetricsPipeline ¶
func NewMetricsPipeline(c PipelineConfig) (func() error, error)
NewMetricsPipeline takes a PipelineConfig and builds a metrics pipeline. It returns a shutdown function that should be called when terminating the pipeline.
func NewTracePipeline ¶
func NewTracePipeline(c PipelineConfig) (func() error, error)
NewTracePipeline creates a new trace pipeline from a config. It returns a shutdown function that should be called when terminating the pipeline.
Types ¶
type PipelineConfig ¶
type PipelineConfig struct { Protocol Protocol Endpoint string Insecure bool Headers map[string]string Resource *resource.Resource ReportingPeriod string Propagators []string SpanProcessors []trace.SpanProcessor Sampler trace.Sampler }
PipelineConfig contains config info for a Pipeline.
type PipelineSetupFunc ¶
type PipelineSetupFunc func(PipelineConfig) (func() error, error)
PipelineSetupFunc defines the interface for a Pipeline Setup function.
Click to show internal directories.
Click to hide internal directories.