trace

package
v2.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithSpanSampling added in v2.3.6

func ContextWithSpanSampling(ctx context.Context, shouldSample bool) context.Context

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 NewSampler(fallback sdktrace.Sampler) *Sampler

func (*Sampler) Description added in v2.3.6

func (s *Sampler) Description() string

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL