Documentation ¶
Overview ¶
Package trace can be used for creating Jaeger tracers Deprecated: this package has been frozen and deprecated in favor of https://github.com/moorara/observe/trace
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(opts Options) (opentracing.Tracer, io.Closer, error)
- type Options
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
Types ¶
type Options ¶ added in v0.2.6
type Options struct { Name string Sampler *jconfig.SamplerConfig Reporter *jconfig.ReporterConfig Logger log.Logger PromReg prometheus.Registerer }
Options contains optional options for Tracer
Click to show internal directories.
Click to hide internal directories.