Versions in this module Expand all Collapse all v1 v1.6.0 Oct 14, 2016 Changes in this version + const JaegerBaggageHeader + const JaegerClientVersion + const JaegerClientVersionTagKey + const JaegerDebugHeader + const SamplerParamTagKey + const SamplerTypeConst + const SamplerTypeProbabilistic + const SamplerTypeRateLimiting + const SamplerTypeRemote + const SamplerTypeTagKey + const SpanContextFormat + const TraceBaggageHeaderPrefix + const TracerHostnameTagKey + const TracerStateHeaderName + const ZipkinSpanFormat + var NullLogger = &nullLogger + var StdLogger = &stdLogger + var TracerOptions tracerOptions + func NewTracer(serviceName string, sampler Sampler, reporter Reporter, ...) (opentracing.Tracer, io.Closer) + type ConstSampler struct + Decision bool + func (s *ConstSampler) Close() + func (s *ConstSampler) Equal(other Sampler) bool + func (s *ConstSampler) IsSampled(id uint64) bool + type ExtractableZipkinSpan interface + Flags func() byte + ParentID func() uint64 + SpanID func() uint64 + TraceID func() uint64 + type Extractor interface + Extract func(carrier interface{}) (SpanContext, error) + type InMemoryReporter struct + func NewInMemoryReporter() *InMemoryReporter + func (r *InMemoryReporter) Close() + func (r *InMemoryReporter) GetSpans() []opentracing.Span + func (r *InMemoryReporter) Report(span *span) + func (r *InMemoryReporter) Reset() + func (r *InMemoryReporter) SpansSubmitted() int + type InMemoryStatsCollector struct + func NewInMemoryStatsCollector() *InMemoryStatsCollector + func (r *InMemoryStatsCollector) Clear() + func (r *InMemoryStatsCollector) GetCounterValue(name string, tags ...string) int64 + func (r *InMemoryStatsCollector) GetCounterValues() map[string]int64 + func (r *InMemoryStatsCollector) IncCounter(name string, tags map[string]string, value int64) + func (r *InMemoryStatsCollector) RecordTimer(name string, tags map[string]string, d time.Duration) + func (r *InMemoryStatsCollector) UpdateGauge(name string, tags map[string]string, value int64) + type InjectableZipkinSpan interface + SetFlags func(flags byte) + SetParentID func(parentID uint64) + SetSpanID func(spanID uint64) + SetTraceID func(traceID uint64) + type Injector interface + Inject func(ctx SpanContext, carrier interface{}) error + type Logger interface + Error func(msg string) + Infof func(msg string, args ...interface{}) + type MetricDescr struct + Name string + Tags map[string]string + func NewMetricDescr(name string, keyValues ...string) MetricDescr + func (m MetricDescr) Key() string + func (m MetricDescr) WithTag(key, value string) MetricDescr + type Metrics struct + DecodingErrors *counter + ReporterDropped *counter + ReporterFailure *counter + ReporterQueueLength *gauge + ReporterSuccess *counter + SamplerParsingFailure *counter + SamplerQueryFailure *counter + SamplerRetrieved *counter + SamplerUpdated *counter + SpansFinished *counter + SpansNotSampled *counter + SpansSampled *counter + SpansStarted *counter + TracesJoinedNotSampled *counter + TracesJoinedSampled *counter + TracesStartedNotSampled *counter + TracesStartedSampled *counter + func NewMetrics(reporter StatsReporter, globalTags map[string]string) *Metrics + type ProbabilisticSampler struct + SamplingBoundary uint64 + func (s *ProbabilisticSampler) Close() + func (s *ProbabilisticSampler) Equal(other Sampler) bool + func (s *ProbabilisticSampler) IsSampled(id uint64) bool + type RemotelyControlledSampler struct + func NewRemotelyControlledSampler(serviceName string, initial Sampler, hostPort string, metrics *Metrics, ...) *RemotelyControlledSampler + func (s *RemotelyControlledSampler) Close() + func (s *RemotelyControlledSampler) Equal(other Sampler) bool + func (s *RemotelyControlledSampler) IsSampled(id uint64) bool + type Reporter interface + Close func() + Report func(span *span) + func NewCompositeReporter(reporters ...Reporter) Reporter + func NewLoggingReporter(logger Logger) Reporter + func NewNullReporter() Reporter + func NewRemoteReporter(sender transport.Transport, options *ReporterOptions) Reporter + type ReporterOptions struct + BufferFlushInterval time.Duration + Logger Logger + Metrics *Metrics + QueueSize int + type Sampler interface + Close func() + Equal func(other Sampler) bool + IsSampled func(id uint64) bool + func NewConstSampler(sample bool) Sampler + func NewProbabilisticSampler(samplingRate float64) (Sampler, error) + func NewRateLimitingSampler(maxTracesPerSecond float64) (Sampler, error) + type SpanContext struct + func ContextFromString(value string) (SpanContext, error) + func NewSpanContext(traceID, spanID, parentID uint64, sampled bool, baggage map[string]string) SpanContext + func (c *SpanContext) CopyFrom(ctx *SpanContext) + func (c SpanContext) ForeachBaggageItem(handler func(k, v string) bool) + func (c SpanContext) IsDebug() bool + func (c SpanContext) IsSampled() bool + func (c SpanContext) IsValid() bool + func (c SpanContext) ParentID() uint64 + func (c SpanContext) SpanID() uint64 + func (c SpanContext) String() string + func (c SpanContext) TraceID() uint64 + func (c SpanContext) WithBaggageItem(key, value string) SpanContext + type StatsReporter interface + IncCounter func(name string, tags map[string]string, value int64) + RecordTimer func(name string, tags map[string]string, d time.Duration) + UpdateGauge func(name string, tags map[string]string, value int64) + var NullStatsReporter StatsReporter = nullStatsReporter{} + type TracerOption func(tracer *tracer) Incompatible versions in this module v2.28.0+incompatible Apr 30, 2021