Documentation
¶
Overview ¶
Package builder defines builder resources (like logger and metrics) shared by jaeger components They are defined in this shared location so that if several components are wired into a single binary (e.g. a local container of complete Jaeger backend) they can all share the builder resources
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicOptions ¶
type BasicOptions struct {
// Logger is a generic logger used by most executables
Logger *zap.Logger
// MetricsFactory is the basic metrics factory used by most executables
MetricsFactory metrics.Factory
}
BasicOptions is a set of basic building blocks for most Jaeger executables
var Options BasicOptions
Options is a factory for all available Option's
func ApplyOptions ¶
func ApplyOptions(opts ...Option) BasicOptions
ApplyOptions takes a set of options and creates a populated BasicOptions struct
func (BasicOptions) LoggerOption ¶
func (BasicOptions) LoggerOption(logger *zap.Logger) Option
LoggerOption creates an Option that initializes the logger
func (BasicOptions) MetricsFactoryOption ¶
func (BasicOptions) MetricsFactoryOption(metricsFactory metrics.Factory) Option
MetricsFactoryOption creates an Option that initializes the MetricsFactory