Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // MaxConcurrent is the maximum number of goroutines flushing entries concurrently. // Defaults to 16. MaxConcurrent int `json:"max_concurrent" yaml:"max_concurrent"` // MaxWait is the maximum amount of time to wait for a full slice of entries // before flushing the entries. Defaults to 1s. MaxWait helper.Duration `json:"max_wait" yaml:"max_wait"` // MaxChunkEntries is the maximum number of entries to flush at a time. // Defaults to 1000. MaxChunkEntries int `json:"max_chunk_entries" yaml:"max_chunk_entries"` }
Config holds the configuration to build a new flusher
type Flusher ¶
type Flusher struct { *zap.SugaredLogger // contains filtered or unexported fields }
Flusher is used to flush entries from a buffer concurrently. It handles max concurrenty, retry behavior, and cancellation.
Click to show internal directories.
Click to hide internal directories.