processor

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultNumWorkers       = 4
	DefaultConfigServerAddr = "config-server"
	DefaultConfigServerPort = ports.ConfigServerGrpcListenPort
)
View Source
const (
	ParentTagNameService   = "p-svc"
	ParentTagNameOperation = "p-op"

	QueueCapacity = 1048576 // 2 ^ 20
)

Variables

View Source
var Options options

Functions

func AddFlags

func AddFlags(flags *flag.FlagSet)

Types

type Flags

type Flags struct {
	NumWorkers       int
	ConfigServerAddr string
	ConfigServerPort int
}

func (*Flags) InitFromViper

func (f *Flags) InitFromViper(v *viper.Viper) *Flags

type Option

type Option func(opt *options)

type ProcessSpan

type ProcessSpan func(span *model.Span)

func ChainedProcessSpan

func ChainedProcessSpan(sps ...ProcessSpan) ProcessSpan

type ProcessSpans

type ProcessSpans func(spans []*model.Span)

type SpanProcessor

type SpanProcessor interface {
	io.Closer
	ProcessSpans(spans []*model.Span) error
}

func NewSpanProcessor

func NewSpanProcessor(logger *zap.Logger, opts ...Option) SpanProcessor

Jump to

Keyboard shortcuts

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