Documentation ¶
Overview ¶
Package flags defines command line flags that are shared by several 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 flags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConfigFileFlag ¶ added in v0.9.0
AddConfigFileFlag adds flags for ExternalConfFlags
func AddLoggingFlag ¶ added in v1.5.0
AddLoggingFlag adds logging flag for SharedFlags
func SetDefaultHealthCheckPort ¶ added in v1.5.0
func SetDefaultHealthCheckPort(port int)
SetDefaultHealthCheckPort sets the default port for health check. Must be called before AddFlags
func TryLoadConfigFile ¶ added in v0.9.0
TryLoadConfigFile initializes viper with config file specified as flag
Types ¶
type SharedFlags ¶ added in v0.6.0
type SharedFlags struct {Logging logging HealthCheck healthCheck }
SharedFlags holds flags configuration
func (*SharedFlags) InitFromViper ¶ added in v0.6.0
func (flags *SharedFlags) InitFromViper(v *viper.Viper) *SharedFlags
InitFromViper initializes SharedFlags with properties from viper
func (*SharedFlags) NewHealthCheck ¶ added in v1.5.0
func (flags *SharedFlags) NewHealthCheck(logger *zap.Logger) (*hc.HealthCheck, error)
NewHealthCheck returns health check based on configuration in SharedFlags