collector

package
v0.15.4-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector added in v0.15.4

type Collector interface {
	Statistics() Statistics
	ResetStatistics()
	// contains filtered or unexported methods
}

func Start

func Start(ctx context.Context, config Config, tracer trace.Tracer, opts ...CollectorOption) (Collector, error)

type CollectorOption

type CollectorOption func(*remoteIngesterConfig)

func WithLogger added in v0.14.7

func WithLogger(logger *zap.Logger) CollectorOption

func WithObserver added in v0.14.8

func WithObserver(observer event.Observer) CollectorOption

func WithStartRemoteServer

func WithStartRemoteServer(startRemoteServer bool) CollectorOption

func WithTraceCache

func WithTraceCache(traceCache TraceCache) CollectorOption

type Config

type Config struct {
	HTTPPort          int
	GRPCPort          int
	BatchTimeout      time.Duration
	RemoteServerURL   string
	RemoteServerToken string
}

type Statistics added in v0.15.4

type Statistics struct {
	SpanCount         int64
	LastSpanTimestamp time.Time
}

type TraceCache

type TraceCache interface {
	Get(string) ([]*v1.Span, bool)
	Append(string, []*v1.Span)
}

func NewTraceCache

func NewTraceCache() TraceCache

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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