processor

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package processor exposes utilities to create an Alloy component from OpenTelemetry Collector processors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments interface {
	component.Arguments

	// Convert converts the Arguments into an OpenTelemetry Collector processor
	// configuration.
	Convert() (otelcomponent.Config, error)

	// Extensions returns the set of extensions that the configured component is
	// allowed to use.
	Extensions() map[otelcomponent.ID]otelextension.Extension

	// Exporters returns the set of exporters that are exposed to the configured
	// component.
	Exporters() map[pipeline.Signal]map[otelcomponent.ID]otelcomponent.Component

	// NextConsumers returns the set of consumers to send data to.
	NextConsumers() *otelcol.ConsumerArguments

	// DebugMetricsConfig returns the configuration for debug metrics
	DebugMetricsConfig() otelcolCfg.DebugMetricsArguments
}

Arguments is an extension of component.Arguments which contains necessary settings for OpenTelemetry Collector processors.

type Processor

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

Processor is an Alloy component shim which manages an OpenTelemetry Collector processor component.

func New

New creates a new Alloy component which encapsulates an OpenTelemetry Collector processor. args must hold a value of the argument type registered with the Alloy component.

The registered component must be registered to export the otelcol.ConsumerExports type, otherwise New will panic.

func (*Processor) CurrentHealth

func (p *Processor) CurrentHealth() component.Health

CurrentHealth implements component.HealthComponent.

func (*Processor) LiveDebugging added in v1.3.0

func (p *Processor) LiveDebugging(_ int)

func (*Processor) Run

func (p *Processor) Run(ctx context.Context) error

Run starts the Processor component.

func (*Processor) Update

func (p *Processor) Update(args component.Arguments) error

Update implements component.Component. It will convert the Arguments into configuration for OpenTelemetry Collector processor configuration and manage the underlying OpenTelemetry Collector processor.

Directories

Path Synopsis
Package attributes provides an otelcol.processor.attributes component.
Package attributes provides an otelcol.processor.attributes component.
Package batch provides an otelcol.processor.batch component.
Package batch provides an otelcol.processor.batch component.
Package deltatocumulative provides an otelcol.processor.deltatocumulative component.
Package deltatocumulative provides an otelcol.processor.deltatocumulative component.
Package discovery provides an otelcol.processor.discovery component.
Package discovery provides an otelcol.processor.discovery component.
Package interval provides an otelcol.processor.interval component.
Package interval provides an otelcol.processor.interval component.
Package attributes provides an otelcol.processor.k8sattributes component.
Package attributes provides an otelcol.processor.k8sattributes component.
Package memorylimiter provides an otelcol.processor.memory_limiter component.
Package memorylimiter provides an otelcol.processor.memory_limiter component.
Package probabilistic_sampler provides an otelcol.processor.probabilistic_sampler component.
Package probabilistic_sampler provides an otelcol.processor.probabilistic_sampler component.
Package span provides an otelcol.processor.span component.
Package span provides an otelcol.processor.span component.
Package tail_sampling provides an otelcol.processor.tail_sampling component.
Package tail_sampling provides an otelcol.processor.tail_sampling component.
Package transform provides an otelcol.processor.transform component.
Package transform provides an otelcol.processor.transform component.

Jump to

Keyboard shortcuts

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