config

package
v0.0.0-...-e57142c Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueuablePayloadSenderConf

type QueuablePayloadSenderConf struct {
	MaxAge             time.Duration
	MaxQueuedBytes     int64
	MaxQueuedPayloads  int
	ExponentialBackoff backoff.ExponentialConfig
}

QueuablePayloadSenderConf contains the configuration needed by a QueuablePayloadSender to operate.

func DefaultQueuablePayloadSenderConf

func DefaultQueuablePayloadSenderConf() QueuablePayloadSenderConf

DefaultQueuablePayloadSenderConf constructs a QueuablePayloadSenderConf with default sane options.

type ServiceWriterConfig

type ServiceWriterConfig struct {
	FlushPeriod      time.Duration
	UpdateInfoPeriod time.Duration
	SenderConfig     QueuablePayloadSenderConf
}

ServiceWriterConfig contains the configuration to customize the behaviour of a ServiceWriter.

func DefaultServiceWriterConfig

func DefaultServiceWriterConfig() ServiceWriterConfig

DefaultServiceWriterConfig creates a new instance of a ServiceWriterConfig using default values.

type StatsWriterConfig

type StatsWriterConfig struct {
	MaxEntriesPerPayload int
	UpdateInfoPeriod     time.Duration
	SenderConfig         QueuablePayloadSenderConf
}

StatsWriterConfig contains the configuration to customize the behaviour of a TraceWriter.

func DefaultStatsWriterConfig

func DefaultStatsWriterConfig() StatsWriterConfig

DefaultStatsWriterConfig creates a new instance of a StatsWriterConfig using default values.

type TraceWriterConfig

type TraceWriterConfig struct {
	MaxSpansPerPayload int
	FlushPeriod        time.Duration
	UpdateInfoPeriod   time.Duration
	SenderConfig       QueuablePayloadSenderConf
}

TraceWriterConfig contains the configuration to customize the behaviour of a TraceWriter.

func DefaultTraceWriterConfig

func DefaultTraceWriterConfig() TraceWriterConfig

DefaultTraceWriterConfig creates a new instance of a TraceWriterConfig using default values.

Jump to

Keyboard shortcuts

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