pipelines

package
v0.0.0-...-5655933 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipelines

type Pipelines struct {
	// contains filtered or unexported fields
}

Pipelines is set of all pipelines created from exporter configs.

func Build

func Build(ctx context.Context, settings component.TelemetrySettings, buildInfo component.BuildInfo, cfg *config.Config, factories component.Factories) (*Pipelines, error)

Build builds all pipelines from config.

func (*Pipelines) GetExporters

func (bps *Pipelines) GetExporters() map[config.DataType]map[config.ComponentID]component.Exporter

func (*Pipelines) HandleZPages

func (bps *Pipelines) HandleZPages(w http.ResponseWriter, r *http.Request)

func (*Pipelines) ShutdownAll

func (bps *Pipelines) ShutdownAll(ctx context.Context) error

ShutdownAll stops all pipelines.

Shutdown order is the reverse of starting: receivers, processors, then exporters. This gives senders a chance to send all their data to a not "shutdown" component.

func (*Pipelines) StartAll

func (bps *Pipelines) StartAll(ctx context.Context, host component.Host) error

StartAll starts all pipelines.

Start with exporters, processors (in revers configured order), then receivers. This is important so that components that are earlier in the pipeline and reference components that are later in the pipeline do not start sending data to later components which are not yet started.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL