evaluator

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvaluateSpan

type EvaluateSpan func(span *model.Span) bool

EvaluateSpan decides whether to increase the sampling rate of operation relate to this span and it is called after FilterSpan.

type Evaluator

type Evaluator interface {
	// Evaluate returns true if span has tags that exist in evaluating tags, else false.
	Evaluate(span *model.Span) bool

	// Get returns evaluating tags
	Get() *api_v1.EvaluatingTags

	// Update updates evaluating tags
	Update(tags *api_v1.EvaluatingTags)
}

func NewEvaluator

func NewEvaluator(logger *zap.Logger) Evaluator

Jump to

Keyboard shortcuts

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