processorprofiles

package module
v0.111.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateProfilesFunc

CreateProfilesFunc is the equivalent of Factory.CreateProfiles(). CreateProfilesFunc is the equivalent of Factory.CreateProfiles().

func (CreateProfilesFunc) CreateProfiles added in v0.111.0

CreateProfiles implements Factory.CreateProfiles.

func (CreateProfilesFunc) CreateProfilesProcessor deprecated added in v0.111.0

func (f CreateProfilesFunc) CreateProfilesProcessor(ctx context.Context, set processor.Settings, cfg component.Config, next consumerprofiles.Profiles) (Profiles, error)

Deprecated: [v0.111.0] use CreateProfiles.

type Factory added in v0.111.0

type Factory interface {
	processor.Factory

	// CreateProfiles creates a Profiles processor based on this config.
	// If the processor type does not support tracing or if the config is not valid,
	// an error will be returned instead.
	CreateProfiles(ctx context.Context, set processor.Settings, cfg component.Config, next consumerprofiles.Profiles) (Profiles, error)

	// Deprecated: [v0.111.0] use CreateProfiles.
	CreateProfilesProcessor(ctx context.Context, set processor.Settings, cfg component.Config, next consumerprofiles.Profiles) (Profiles, error)

	// ProfilesStability gets the stability level of the Profiles processor.
	ProfilesStability() component.StabilityLevel
}

Factory is a component.Factory interface for processors.

This interface cannot be directly implemented. Implementations must use the NewFactory to implement it.

func NewFactory added in v0.111.0

func NewFactory(cfgType component.Type, createDefaultConfig component.CreateDefaultConfigFunc, options ...FactoryOption) Factory

NewFactory returns a Factory.

type FactoryOption added in v0.111.0

type FactoryOption interface {
	// contains filtered or unexported methods
}

FactoryOption apply changes to ReceiverOptions.

func WithLogs added in v0.111.0

WithLogs overrides the default "error not supported" implementation for CreateLogs and the default "undefined" stability level.

func WithMetrics added in v0.111.0

func WithMetrics(createMetrics processor.CreateMetricsFunc, sl component.StabilityLevel) FactoryOption

WithMetrics overrides the default "error not supported" implementation for CreateMetrics and the default "undefined" stability level.

func WithProfiles

func WithProfiles(createProfiles CreateProfilesFunc, sl component.StabilityLevel) FactoryOption

WithProfiles overrides the default "error not supported" implementation for CreateProfiles and the default "undefined" stability level.

func WithTraces added in v0.111.0

WithTraces overrides the default "error not supported" implementation for CreateTraces and the default "undefined" stability level.

type Profiles

type Profiles interface {
	component.Component
	consumerprofiles.Profiles
}

Profiles is a processor that can consume profiles.

Jump to

Keyboard shortcuts

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