# Functions

NewAlwaysSample creates a policy evaluator the samples all traces.
No description provided by the author
NewBooleanAttributeFilter creates a policy evaluator that samples all traces with the given attribute that match the supplied boolean value.
NewComposite creates a policy evaluator that samples all subpolicies.
NewLatency creates a policy evaluator sampling traces with a duration greater than a configured threshold.
NewNumericAttributeFilter creates a policy evaluator that samples all traces with the given attribute in the given numeric range.
NewOTTLConditionFilter looks at the trace data and returns a corresponding SamplingDecision.
NewProbabilisticSampler creates a policy evaluator that samples a percentage of traces.
NewRateLimiting creates a policy evaluator the samples all traces.
NewSpanCount creates a policy evaluator sampling traces with more than one span per trace.
NewStatusCodeFilter creates a policy evaluator that samples all traces with a given status code.
NewStringAttributeFilter creates a policy evaluator that samples all traces with the given attribute in the given numeric range.
NewTraceStateFilter creates a policy evaluator that samples all traces with the given value by the specific key in the trace_state.
No description provided by the author

# Constants

Dropped is used when data needs to be purged before the sampling policy had a chance to evaluate it.
Error is used to indicate that policy evaluation was not succeeded.
InvertNotSampled is used on the invert match flow and indicates to not sample the data.
InvertSampled is used on the invert match flow and indicates to sample the data.
NotSampled is used to indicate that the decision was already taken to not sample the data.
Pending indicates that the policy was not evaluated yet.
Sampled is used to indicate that the decision was already taken to sample the data.
Unspecified indicates that the status of the decision was not set yet.

# Structs

No description provided by the author
Composite evaluator and its internal data.
MonotonicClock provides monotonic real clock-based current Unix second.
SubPolicyEvalParams defines the evaluator and max rate for a sub-policy.
TraceData stores the sampling related trace data.

# Interfaces

PolicyEvaluator implements a tail-based sampling policy evaluator, which makes a sampling decision for a given trace when requested.
TimeProvider allows to get current Unix second.

# Type aliases

Decision gives the status of sampling decision.