jaegerlegacyreceiver

package module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

README

Jaeger Receiver

To be added.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	instanceName string,
	config *Configuration,
	nextConsumer consumer.TraceConsumerOld,
	logger *zap.Logger,
) (component.TraceReceiver, error)

New creates a TraceReceiver that receives traffic as a Jaeger collector, and also as a Jaeger agent.

Types

type Config

type Config struct {
	TypeVal   configmodels.Type                                 `mapstructure:"-"`
	NameVal   string                                            `mapstructure:"-"`
	Protocols map[string]*configprotocol.ProtocolServerSettings `mapstructure:"protocols"`
}

Config defines configuration for Jaeger receiver.

func (*Config) Name

func (rs *Config) Name() string

Name gets the receiver name.

func (*Config) SetName

func (rs *Config) SetName(name string)

SetName sets the receiver name.

func (*Config) SetType

func (rs *Config) SetType(typeStr configmodels.Type)

SetType sets the receiver type.

func (*Config) Type

func (rs *Config) Type() configmodels.Type

Type sets the receiver type.

type Configuration

type Configuration struct {
	CollectorThriftPort int
}

Configuration defines the behavior and the ports that the Jaeger Legacy receiver will use.

type Factory

type Factory struct {
}

Factory is the factory for Jaeger legacy receiver.

func (*Factory) CreateDefaultConfig

func (f *Factory) CreateDefaultConfig() configmodels.Receiver

CreateDefaultConfig creates the default configuration for JaegerLegacy receiver.

func (*Factory) CreateMetricsReceiver

func (f *Factory) CreateMetricsReceiver(
	logger *zap.Logger,
	cfg configmodels.Receiver,
	consumer consumer.MetricsConsumer,
) (component.MetricsReceiver, error)

CreateMetricsReceiver creates a metrics receiver based on provided config.

func (*Factory) CreateTraceReceiver

func (f *Factory) CreateTraceReceiver(
	ctx context.Context,
	logger *zap.Logger,
	cfg configmodels.Receiver,
	nextConsumer consumer.TraceConsumerOld,
) (component.TraceReceiver, error)

CreateTraceReceiver creates a trace receiver based on provided config.

func (*Factory) CustomUnmarshaler

func (f *Factory) CustomUnmarshaler() component.CustomUnmarshaler

CustomUnmarshaler is used to add defaults for named but empty protocols

func (*Factory) Type

func (f *Factory) Type() configmodels.Type

Type gets the type of the Receiver config created by this factory.

Jump to

Keyboard shortcuts

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