Documentation ¶
Index ¶
- func NewAgentReporter(agentAddr string, logSpans bool) *jconfig.ReporterConfig
- func NewCollectorReporter(collectorAddr string, logSpans bool) *jconfig.ReporterConfig
- func NewConstSampler(enabled bool) *jconfig.SamplerConfig
- func NewProbabilisticSampler(probability float64) *jconfig.SamplerConfig
- func NewRateLimitingSampler(rate float64) *jconfig.SamplerConfig
- func NewRemoteSampler(probability float64, serverURL string, interval time.Duration) *jconfig.SamplerConfig
- func NewTracer(name string, sampler *jconfig.SamplerConfig, reporter *jconfig.ReporterConfig, ...) (opentracing.Tracer, io.Closer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAgentReporter ¶
func NewAgentReporter(agentAddr string, logSpans bool) *jconfig.ReporterConfig
NewAgentReporter creates a Jaeger reporter reporting to jaeger-agent
agentAddr is the address of Jaeger agent logSpans true will log all spans
func NewCollectorReporter ¶
func NewCollectorReporter(collectorAddr string, logSpans bool) *jconfig.ReporterConfig
NewCollectorReporter creates a Jaeger reporter reporting to jaeger-collector
collectorAddr is the address of Jaeger collector logSpans true will log all spans
func NewConstSampler ¶
func NewConstSampler(enabled bool) *jconfig.SamplerConfig
NewConstSampler creates a constant Jaeger sampler
enabled true will report all traces enabled false will skip all traces
func NewProbabilisticSampler ¶
func NewProbabilisticSampler(probability float64) *jconfig.SamplerConfig
NewProbabilisticSampler creates a probabilistic Jaeger sampler
probability is between 0 and 1
func NewRateLimitingSampler ¶
func NewRateLimitingSampler(rate float64) *jconfig.SamplerConfig
NewRateLimitingSampler creates a rate limited Jaeger sampler
rate is the number of spans per second
func NewRemoteSampler ¶
func NewRemoteSampler(probability float64, serverURL string, interval time.Duration) *jconfig.SamplerConfig
NewRemoteSampler creates a Jaeger sampler pulling remote sampling strategies
probability is the initial probability between 0 and 1 before a remote sampling strategy is recieved serverURL is the address of sampling server interval specifies the rate of polling remote sampling strategies
func NewTracer ¶
func NewTracer(name string, sampler *jconfig.SamplerConfig, reporter *jconfig.ReporterConfig, logger log.Logger, reg prometheus.Registerer) (opentracing.Tracer, io.Closer, error)
NewTracer creates a new tracer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.