collector

package
v0.0.0-...-ed06964 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

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

Types

type CollectorOption

type CollectorOption func(*remoteIngesterConfig)

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 TraceCache

type TraceCache interface {
	Get(string) ([]*v1.Span, bool)
	Set(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