Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
0 samplePeriod cleanPeriod +———————————+————————————+ r w r - smapleBatch 缓存samplePeriod 秒后推送数据 w - cleanBatch 缓存cleanPeriod 秒后清理
func (*Bucket) CopyAndGetBatch ¶
同一线程执行,无需加锁
func (*Bucket) CopyAndGetBatches ¶
func (bucket *Bucket) CopyAndGetBatches(batch Batch, sampleTime int) (sampleBatch Batch, toCleanBatch Batch)
同一线程执行,无需加锁
func (*Bucket) GetCleanPeriod ¶
type WriteableBatch ¶
type WriteableBatch struct {
// contains filtered or unexported fields
}
func NewWriteableBatch ¶
func NewWriteableBatch() *WriteableBatch
func (*WriteableBatch) AddToBatch ¶
func (batch *WriteableBatch) AddToBatch(data pcommon.TraceID)
func (*WriteableBatch) GetAndReset ¶
func (batch *WriteableBatch) GetAndReset() Batch
Click to show internal directories.
Click to hide internal directories.