Documentation ¶
Index ¶
- Constants
- type AggregatorSkywalking
- func (p *AggregatorSkywalking) Add(log *protocol.Log, ctx map[string]interface{}) error
- func (*AggregatorSkywalking) Description() string
- func (p *AggregatorSkywalking) Flush() []*protocol.LogGroup
- func (p *AggregatorSkywalking) Init(context ilogtail.Context, que ilogtail.LogGroupQueue) (int, error)
- func (p *AggregatorSkywalking) Reset()
Constants ¶
View Source
const ( MaxLogCount = 1024 MaxLogGroupSize = 3 * 1024 * 1024 )
View Source
const DefaultLogLogstore = "skywalking-logs"
View Source
const DefaultMetricsLogstore = "skywalking-metrics"
View Source
const DefaultTraceLogstore = "skywalking-traces"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregatorSkywalking ¶
type AggregatorSkywalking struct { MaxLogGroupCount int MaxLogCount int PackFlag bool Topic string MetricsLogstore string TraceLogstore string LogLogstore string Lock *sync.Mutex // contains filtered or unexported fields }
func NewAggregatorSkywalking ¶
func NewAggregatorSkywalking() *AggregatorSkywalking
func (*AggregatorSkywalking) Add ¶
func (p *AggregatorSkywalking) Add(log *protocol.Log, ctx map[string]interface{}) error
Add adds @log to aggregator. Add use first content as route key Add returns any error encountered, nil means success.
func (*AggregatorSkywalking) Description ¶
func (*AggregatorSkywalking) Description() string
func (*AggregatorSkywalking) Flush ¶
func (p *AggregatorSkywalking) Flush() []*protocol.LogGroup
func (*AggregatorSkywalking) Init ¶
func (p *AggregatorSkywalking) Init(context ilogtail.Context, que ilogtail.LogGroupQueue) (int, error)
func (*AggregatorSkywalking) Reset ¶
func (p *AggregatorSkywalking) Reset()
Click to show internal directories.
Click to hide internal directories.