skywalking

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 (*AggregatorSkywalking) Reset

func (p *AggregatorSkywalking) Reset()

Jump to

Keyboard shortcuts

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