Documentation ¶
Overview ¶
Package builder handles the options to build the OpenTelemetry collector pipeline.
Index ¶
- func Flags(flags *flag.FlagSet)
- func MemBallastSize() int
- type BuiltPipelines
- type Exporters
- type Extensions
- func (exts Extensions) NotifyPipelineNotReady() error
- func (exts Extensions) NotifyPipelineReady() error
- func (exts Extensions) ShutdownAll(ctx context.Context) error
- func (exts Extensions) StartAll(ctx context.Context, host component.Host) error
- func (exts Extensions) ToMap() map[config.ComponentID]component.Extension
- type Receivers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Flags ¶
Flags adds flags related to basic building of the collector server to the given flagset.
func MemBallastSize ¶
func MemBallastSize() int
MemBallastSize returns the size of memory ballast to use in MBs
Types ¶
type BuiltPipelines ¶
BuiltPipelines is a map of build pipelines created from pipeline configs.
func BuildPipelines ¶
func BuildPipelines( logger *zap.Logger, tracerProvider trace.TracerProvider, 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 ¶
Exporters is a map of exporters created from exporter configs.
func BuildExporters ¶
func BuildExporters( logger *zap.Logger, tracerProvider trace.TracerProvider, buildInfo component.BuildInfo, config *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 Extensions ¶
Extensions is a map of extensions created from extension configs.
func BuildExtensions ¶
func BuildExtensions( logger *zap.Logger, tracerProvider trace.TracerProvider, buildInfo component.BuildInfo, config *config.Config, factories map[config.Type]component.ExtensionFactory, ) (Extensions, error)
BuildExtensions builds Extensions from config.
func (Extensions) NotifyPipelineNotReady ¶
func (exts Extensions) NotifyPipelineNotReady() error
func (Extensions) NotifyPipelineReady ¶
func (exts Extensions) NotifyPipelineReady() error
func (Extensions) ShutdownAll ¶
func (exts Extensions) ShutdownAll(ctx context.Context) error
ShutdownAll stops all exporters.
func (Extensions) ToMap ¶
func (exts Extensions) ToMap() map[config.ComponentID]component.Extension
type Receivers ¶
Receivers is a map of receivers created from receiver configs.
func BuildReceivers ¶
func BuildReceivers( logger *zap.Logger, tracerProvider trace.TracerProvider, buildInfo component.BuildInfo, config *config.Config, builtPipelines BuiltPipelines, factories map[config.Type]component.ReceiverFactory, ) (Receivers, error)
BuildReceivers builds Receivers from config.
func (Receivers) ShutdownAll ¶
ShutdownAll stops all receivers.