Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveServiceTracker ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.