tracetracker

package
v3.11.0-beta3+incompat... Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveServiceTracker

type ActiveServiceTracker struct {
	sync.Mutex
	// contains filtered or unexported fields
}

ActiveServiceTracker keeps track of which services are seen in the trace spans passed through ProcessSpans. It supports expiry of service names if they are not seen for a certain amount of time.

func New

func New(timeout time.Duration, newServiceCallback func(dp *datapoint.Datapoint)) *ActiveServiceTracker

New creates a new initialized service tracker

func (*ActiveServiceTracker) AddSpans

func (a *ActiveServiceTracker) AddSpans(ctx context.Context, spans []*trace.Span) error

AddSpans accepts a list of trace spans and uses them to update the current list of active services. This is thread-safe.

func (*ActiveServiceTracker) CorrelationDatapoints

func (a *ActiveServiceTracker) CorrelationDatapoints() []*datapoint.Datapoint

CorrelationDatapoints returns a list of host correlation datapoints based on the spans sent through ProcessSpans

func (*ActiveServiceTracker) InternalMetrics

func (a *ActiveServiceTracker) InternalMetrics() []*datapoint.Datapoint

InternalMetrics returns datapoint describing the status of the tracker

Jump to

Keyboard shortcuts

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