Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTracer ¶
func NewTracer(ctx context.Context, logger log.Logger, metrics *prometheus.Registry, conf []byte) (opentracing.Tracer, io.Closer, error)
NewTracer create tracer from YAML.
func ParseConfigFromYaml ¶
func ParseConfigFromYaml(cfg []byte) (*config.Configuration, error)
ParseConfigFromYaml uses config YAML to set the tracer's Configuration.
Types ¶
type Config ¶
type Config struct { ServiceName string `yaml:"service_name"` Disabled bool `yaml:"disabled"` RPCMetrics bool `yaml:"rpc_metrics"` Tags string `yaml:"tags"` SamplerType string `yaml:"sampler_type"` SamplerParam float64 `yaml:"sampler_param"` SamplerManagerHostPort string `yaml:"sampler_manager_host_port"` SamplerMaxOperations int `yaml:"sampler_max_operations"` SamplerRefreshInterval time.Duration `yaml:"sampler_refresh_interval"` ReporterMaxQueueSize int `yaml:"reporter_max_queue_size"` ReporterFlushInterval time.Duration `yaml:"reporter_flush_interval"` ReporterLogSpans bool `yaml:"reporter_log_spans"` Endpoint string `yaml:"endpoint"` User string `yaml:"user"` Password string `yaml:"password"` AgentHost string `yaml:"agent_host"` AgentPort int `yaml:"agent_port"` Gen128Bit bool `yaml:"traceid_128bit"` }
Config - YAML configuration. For details see to https://github.com/jaegertracing/jaeger-client-go#environment-variables.
Click to show internal directories.
Click to hide internal directories.