Documentation ¶
Index ¶
- func AddFlags(flags *flag.FlagSet)
- type Factory
- func (f *Factory) CreateDefaultConfig() configmodels.Receiver
- func (f *Factory) CreateMetricsReceiver(ctx context.Context, params component.ReceiverCreateParams, ...) (component.MetricsReceiver, error)
- func (f *Factory) CreateTraceReceiver(ctx context.Context, params component.ReceiverCreateParams, ...) (component.TraceReceiver, error)
- func (f *Factory) CustomUnmarshaler() component.CustomUnmarshaler
- func (f *Factory) Type() configmodels.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Factory ¶
type Factory struct { // Wrapped is Jaeger receiver. Wrapped *jaegerreceiver.Factory // Viper is used to get configuration values for default configuration Viper *viper.Viper }
Factory wraps jaegerreceiver.Factory and makes the default config configurable via viper. For instance this enables using flags as default values in the config object.
func (*Factory) CreateDefaultConfig ¶
func (f *Factory) CreateDefaultConfig() configmodels.Receiver
CreateDefaultConfig returns default configuration of Factory. This function implements OTEL component.ReceiverFactoryBase interface.
func (*Factory) CreateMetricsReceiver ¶
func (f *Factory) CreateMetricsReceiver( ctx context.Context, params component.ReceiverCreateParams, cfg configmodels.Receiver, nextConsumer consumer.MetricsConsumer, ) (component.MetricsReceiver, error)
CreateMetricsReceiver creates a metrics receiver based on provided config. This function implements component.ReceiverFactory.
func (*Factory) CreateTraceReceiver ¶
func (f *Factory) CreateTraceReceiver( ctx context.Context, params component.ReceiverCreateParams, cfg configmodels.Receiver, nextConsumer consumer.TraceConsumer, ) (component.TraceReceiver, error)
CreateTraceReceiver creates Jaeger receiver trace receiver. This function implements OTEL component.ReceiverFactory interface.
func (*Factory) CustomUnmarshaler ¶
func (f *Factory) CustomUnmarshaler() component.CustomUnmarshaler
CustomUnmarshaler creates custom unmarshaller for Jaeger receiver config. This function implements component.ReceiverFactoryBase interface.
func (*Factory) Type ¶
func (f *Factory) Type() configmodels.Type
Type returns the type of the receiver.