Documentation ¶
Index ¶
- func ContextWithSpanSampling(ctx context.Context, shouldSample bool) context.Context
- func NewDelayedSpanProcessor(exporter sdktrace.SpanExporter, options ...DelayedSpanProcessorOption) sdktrace.SpanProcessor
- type DelayedSpanProcessorOption
- func WithBatchTimeout(d time.Duration) DelayedSpanProcessorOption
- func WithExportTimeout(d time.Duration) DelayedSpanProcessorOption
- func WithMaxExportBatchSize(n int) DelayedSpanProcessorOption
- func WithMaxLatency(d time.Duration) DelayedSpanProcessorOption
- func WithMaxQueueSize(n int) DelayedSpanProcessorOption
- func WithMaxTotalSpans(n int) DelayedSpanProcessorOption
- func WithOnError(b bool) DelayedSpanProcessorOption
- func WithTraceIDFraction(fraction float64) DelayedSpanProcessorOption
- func WithTraceIDFractionScoped(fractions map[string]float64) DelayedSpanProcessorOption
- type LookupCardinalityDetector
- type Sampler
- type TracerProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithSpanSampling ¶ added in v2.3.6
func NewDelayedSpanProcessor ¶ added in v2.3.6
func NewDelayedSpanProcessor( exporter sdktrace.SpanExporter, options ...DelayedSpanProcessorOption, ) sdktrace.SpanProcessor
Types ¶
type DelayedSpanProcessorOption ¶ added in v2.3.6
type DelayedSpanProcessorOption func(*delayedSpanProcessorOptions)
func WithBatchTimeout ¶ added in v2.3.6
func WithBatchTimeout(d time.Duration) DelayedSpanProcessorOption
func WithExportTimeout ¶ added in v2.3.6
func WithExportTimeout(d time.Duration) DelayedSpanProcessorOption
func WithMaxExportBatchSize ¶ added in v2.3.6
func WithMaxExportBatchSize(n int) DelayedSpanProcessorOption
func WithMaxLatency ¶ added in v2.3.6
func WithMaxLatency(d time.Duration) DelayedSpanProcessorOption
func WithMaxQueueSize ¶ added in v2.3.6
func WithMaxQueueSize(n int) DelayedSpanProcessorOption
func WithMaxTotalSpans ¶ added in v2.3.6
func WithMaxTotalSpans(n int) DelayedSpanProcessorOption
func WithOnError ¶ added in v2.3.6
func WithOnError(b bool) DelayedSpanProcessorOption
func WithTraceIDFraction ¶ added in v2.3.6
func WithTraceIDFraction(fraction float64) DelayedSpanProcessorOption
func WithTraceIDFractionScoped ¶ added in v2.3.6
func WithTraceIDFractionScoped(fractions map[string]float64) DelayedSpanProcessorOption
type LookupCardinalityDetector ¶
type LookupCardinalityDetector func(string) cardinalitydetector.Detector
type Sampler ¶ added in v2.3.6
type Sampler struct {
// contains filtered or unexported fields
}
func NewSampler ¶ added in v2.3.6
func (*Sampler) Description ¶ added in v2.3.6
Description returns information describing the Sampler.
func (*Sampler) ShouldSample ¶ added in v2.3.6
func (s *Sampler) ShouldSample(params sdktrace.SamplingParameters) sdktrace.SamplingResult
ShouldSample checks the context for shouldSampleKey and returns a sampling decision based on that. Otherwise, it delegates to the fallback sampler.
type TracerProvider ¶
type TracerProvider struct { *sdktrace.TracerProvider // contains filtered or unexported fields }
func NewTracerProvider ¶
func NewTracerProvider( ctx context.Context, cardinalityDetectorOptions cardinalitydetector.Options, opts ...sdktrace.TracerProviderOption, ) *TracerProvider
func (*TracerProvider) Shutdown ¶
func (p *TracerProvider) Shutdown(ctx context.Context) error
Shutdown implements trace.TracerProvider.
func (*TracerProvider) Tracer ¶
func (p *TracerProvider) Tracer(name string, options ...trace.TracerOption) trace.Tracer
Tracer implements trace.TracerProvider.
Click to show internal directories.
Click to hide internal directories.