Versions in this module Expand all Collapse all v0 v0.6.1 Jun 18, 2020 Changes in this version + const DefaultBatchTimeout + const DefaultMaxAttributesPerSpan + const DefaultMaxEventsPerSpan + const DefaultMaxExportBatchSize + const DefaultMaxLinksPerSpan + const DefaultMaxQueueSize + func RegisterSpanProcessor(e SpanProcessor) + func UnregisterSpanProcessor(s SpanProcessor) + type BatchSpanProcessor struct + func NewBatchSpanProcessor(e export.SpanBatcher, opts ...BatchSpanProcessorOption) (*BatchSpanProcessor, error) + func (bsp *BatchSpanProcessor) OnEnd(sd *export.SpanData) + func (bsp *BatchSpanProcessor) OnStart(sd *export.SpanData) + func (bsp *BatchSpanProcessor) Shutdown() + type BatchSpanProcessorOption func(o *BatchSpanProcessorOptions) + func WithBatchTimeout(delay time.Duration) BatchSpanProcessorOption + func WithBlocking() BatchSpanProcessorOption + func WithMaxExportBatchSize(size int) BatchSpanProcessorOption + func WithMaxQueueSize(size int) BatchSpanProcessorOption + type BatchSpanProcessorOptions struct + BatchTimeout time.Duration + BlockOnQueueFull bool + MaxExportBatchSize int + MaxQueueSize int + type Config struct + DefaultSampler Sampler + IDGenerator internal.IDGenerator + MaxAttributesPerSpan int + MaxEventsPerSpan int + MaxLinksPerSpan int + Resource *resource.Resource + type Provider struct + func NewProvider(opts ...ProviderOption) (*Provider, error) + func (p *Provider) ApplyConfig(cfg Config) + func (p *Provider) RegisterSpanProcessor(s SpanProcessor) + func (p *Provider) Tracer(name string, opts ...apitrace.TracerOption) apitrace.Tracer + func (p *Provider) UnregisterSpanProcessor(s SpanProcessor) + type ProviderOption func(*ProviderOptions) + func WithBatcher(b export.SpanBatcher, bopts ...BatchSpanProcessorOption) ProviderOption + func WithConfig(config Config) ProviderOption + func WithResource(r *resource.Resource) ProviderOption + func WithSyncer(syncer export.SpanSyncer) ProviderOption + type ProviderOptions struct + type Sampler interface + Description func() string + ShouldSample func(SamplingParameters) SamplingResult + func AlwaysSample() Sampler + func NeverSample() Sampler + func ParentSample(fallback Sampler) Sampler + func ProbabilitySampler(fraction float64) Sampler + type SamplingDecision uint8 + const NotRecord + const Record + const RecordAndSampled + type SamplingParameters struct + Attributes []kv.KeyValue + HasRemoteParent bool + Kind api.SpanKind + Links []api.Link + Name string + ParentContext api.SpanContext + TraceID api.ID + type SamplingResult struct + Attributes []kv.KeyValue + Decision SamplingDecision + type SimpleSpanProcessor struct + func NewSimpleSpanProcessor(e export.SpanSyncer) *SimpleSpanProcessor + func (ssp *SimpleSpanProcessor) OnEnd(sd *export.SpanData) + func (ssp *SimpleSpanProcessor) OnStart(sd *export.SpanData) + func (ssp *SimpleSpanProcessor) Shutdown() + type SpanProcessor interface + OnEnd func(sd *export.SpanData) + OnStart func(sd *export.SpanData) + Shutdown func()