Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batcher ¶
type Batcher struct {
// contains filtered or unexported fields
}
Batcher collects spans to send them to exporters in batches
func New ¶
New constructs and starts the Batcher beware that errors from the exporter are ignored, so if you really need them use a decorator or something
func (*Batcher) ErredCount ¶
func (*Batcher) FlushedCount ¶
func (*Batcher) TriggerFlush ¶
func (b *Batcher) TriggerFlush()
TriggerFlush asynchronously writes queue content to writer
type Config ¶
type Config struct { BatchSize int BufferSize int // how many spans to be buffered before blocking, BatchSize*5 if zero Timeout time.Duration }
func ConfigDefault ¶
func ConfigDefault() Config
func (*Config) GetBatchSize ¶
func (*Config) GetBufferSize ¶
Click to show internal directories.
Click to hide internal directories.