Documentation ¶
Index ¶
- type CreateProfilesFunc
- type Factory
- type FactoryOption
- func WithLogs(createLogs processor.CreateLogsFunc, sl component.StabilityLevel) FactoryOption
- func WithMetrics(createMetrics processor.CreateMetricsFunc, sl component.StabilityLevel) FactoryOption
- func WithProfiles(createProfiles CreateProfilesFunc, sl component.StabilityLevel) FactoryOption
- func WithTraces(createTraces processor.CreateTracesFunc, sl component.StabilityLevel) FactoryOption
- type Profiles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateProfilesFunc ¶
type CreateProfilesFunc func(context.Context, processor.Settings, component.Config, xconsumer.Profiles) (Profiles, error)
CreateProfilesFunc is the equivalent of Factory.CreateProfiles(). CreateProfilesFunc is the equivalent of Factory.CreateProfiles().
type Factory ¶
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 xconsumer.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 ¶
func NewFactory(cfgType component.Type, createDefaultConfig component.CreateDefaultConfigFunc, options ...FactoryOption) Factory
NewFactory returns a Factory.
type FactoryOption ¶
type FactoryOption interface {
// contains filtered or unexported methods
}
FactoryOption apply changes to ReceiverOptions.
func WithLogs ¶
func WithLogs(createLogs processor.CreateLogsFunc, sl component.StabilityLevel) FactoryOption
WithLogs overrides the default "error not supported" implementation for CreateLogs and the default "undefined" stability level.
func WithMetrics ¶
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 ¶
func WithTraces(createTraces processor.CreateTracesFunc, sl component.StabilityLevel) FactoryOption
WithTraces overrides the default "error not supported" implementation for CreateTraces and the default "undefined" stability level.