Documentation ¶
Index ¶
- type CreateProfilesFunc
- type Factory
- type FactoryOption
- func WithLogs(createLogs receiver.CreateLogsFunc, sl component.StabilityLevel) FactoryOption
- func WithMetrics(createMetrics receiver.CreateMetricsFunc, sl component.StabilityLevel) FactoryOption
- func WithProfiles(createProfiles CreateProfilesFunc, sl component.StabilityLevel) FactoryOption
- func WithTraces(createTraces receiver.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, receiver.Settings, component.Config, xconsumer.Profiles) (Profiles, error)
CreateProfilesFunc is the equivalent of Factory.CreateProfiles.
type Factory ¶
type Factory interface { receiver.Factory // CreateProfiles creates a Profiles based on this config. // If the receiver type does not support tracing or if the config is not valid // an error will be returned instead. `next` is never nil. CreateProfiles(ctx context.Context, set receiver.Settings, cfg component.Config, next xconsumer.Profiles) (Profiles, error) // ProfilesStability gets the stability level of the Profiles receiver. ProfilesStability() component.StabilityLevel }
Factory is a factory interface for receivers.
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 Factory.
func WithLogs ¶
func WithLogs(createLogs receiver.CreateLogsFunc, sl component.StabilityLevel) FactoryOption
WithLogs overrides the default "error not supported" implementation for Factory.CreateLogs and the default "undefined" stability level.
func WithMetrics ¶
func WithMetrics(createMetrics receiver.CreateMetricsFunc, sl component.StabilityLevel) FactoryOption
WithMetrics overrides the default "error not supported" implementation for Factory.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 Factory.CreateProfiles and the default "undefined" stability level.
func WithTraces ¶
func WithTraces(createTraces receiver.CreateTracesFunc, sl component.StabilityLevel) FactoryOption
WithTraces overrides the default "error not supported" implementation for Factory.CreateTraces and the default "undefined" stability level.
type Profiles ¶
Profiles receiver receives profiles. Its purpose is to translate data from any format to the collector's internal profile format. Profiles receiver feeds a xconsumer.Profiles with data.
For example, it could be a pprof data source which translates pprof profiles into pprofile.Profiles.