Documentation ¶
Overview ¶
Package builder handles the options to build the OpenTelemetry collector pipeline.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuiltPipelines ¶
type BuiltPipelines map[config.ComponentID]*builtPipeline
BuiltPipelines is a map of build pipelines created from pipeline configs.
func BuildPipelines ¶
func BuildPipelines( settings component.TelemetrySettings, buildInfo component.BuildInfo, config *config.Config, exporters Exporters, factories map[config.Type]component.ProcessorFactory, ) (BuiltPipelines, error)
BuildPipelines builds pipeline processors from config. Requires exporters to be already built via BuildExporters.
func (BuiltPipelines) ShutdownProcessors ¶
func (bps BuiltPipelines) ShutdownProcessors(ctx context.Context) error
func (BuiltPipelines) StartProcessors ¶
type Exporters ¶
type Exporters map[config.ComponentID]*builtExporter
Exporters is a map of exporters created from exporter configs.
func BuildExporters ¶
func BuildExporters( settings component.TelemetrySettings, buildInfo component.BuildInfo, cfg *config.Config, factories map[config.Type]component.ExporterFactory, ) (Exporters, error)
BuildExporters builds Exporters from config.
func (Exporters) ShutdownAll ¶
ShutdownAll stops all exporters.
func (Exporters) ToMapByDataType ¶
type Receivers ¶
type Receivers map[config.ComponentID]*builtReceiver
Receivers is a map of receivers created from receiver configs.
func BuildReceivers ¶
func BuildReceivers( settings component.TelemetrySettings, buildInfo component.BuildInfo, cfg *config.Config, builtPipelines BuiltPipelines, factories map[config.Type]component.ReceiverFactory, ) (Receivers, error)
BuildReceivers builds Receivers from config.
func (Receivers) ShutdownAll ¶
ShutdownAll stops all receivers.
Click to show internal directories.
Click to hide internal directories.