Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RulesEngine ¶
type RulesEngine struct {
// contains filtered or unexported fields
}
RulesEngine is used to test traces against a policy
func NewRulesEngine ¶
func NewRulesEngine(policy string) *RulesEngine
NewRulesEngine creates a rules engine with a policy defined by the policy argument
func (*RulesEngine) AcceptSpans ¶
func (r *RulesEngine) AcceptSpans(spans []honey.Span) (decision bool, sample *SampleResult)
AcceptSpans checks whether a set of spans is accepted by the rules engine or not
type SampleResult ¶
SampleResult expresses the result from the policy of what rule matched and the appropriate sample rate
Click to show internal directories.
Click to hide internal directories.