otlp

package
v0.0.0-...-5b67db0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTraceProvider

func NewTraceProvider(ctx context.Context, cfg *TraceConfig) (*trace.TracerProvider, error)

Types

type SamplerConfig

type SamplerConfig struct {
	Name    string
	Based   string
	Ratio   sql.NullFloat64
	Options []string
}

type TraceConfig

type TraceConfig struct {
	Endpoint           string
	Compress           string
	Insecure           sql.NullBool
	Reconnect          time.Duration
	Timeout            time.Duration
	Retry              *otlp.RetryConfig
	Headers            map[string]string
	ExportTimeout      time.Duration
	ExportBatchSize    sql.NullInt32
	ExportBatchTimeout time.Duration
	QueueSize          sql.NullInt32
	QueueBlocking      sql.NullBool
	Sampler            *SamplerConfig
	*Config
}

Jump to

Keyboard shortcuts

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