# Functions
ManifestFromFilePath creates a sampling ruleset from a given filepath fp.
ManifestFromJSONBytes creates a sampling ruleset from given JSON bytes b.
NewCentralizedStrategy creates a centralized sampling strategy with a fallback on local default rule.
NewCentralizedStrategyWithFilePath creates a centralized sampling strategy with a fallback on local rules located at the given file path.
NewCentralizedStrategyWithJSONBytes creates a centralized sampling strategy with a fallback on local rules specified in the given byte slice.
NewLocalizedStrategy initializes an instance of LocalizedStrategy with the default trace sampling rules.
NewLocalizedStrategyFromFilePath initializes an instance of LocalizedStrategy using a custom ruleset found at the filepath fp.
NewLocalizedStrategyFromJSONBytes initializes an instance of LocalizedStrategy using a custom ruleset provided in the json bytes b.
# Structs
CentralizedManifest represents a full sampling ruleset, with a list of custom rules and default values for incoming requests that do not match any of the provided rules.
CentralizedReservoir is a reservoir distributed among all running instances of the SDK.
CentralizedRule represents a centralized sampling rule.
CentralizedStrategy is an implementation of SamplingStrategy.
Decision contains sampling decision and the rule matched for an incoming request.
LocalizedStrategy makes trace sampling decisions based on a set of rules provided in a local JSON file.
Properties is the base set of properties that define a sampling rule.
Request represents parameters used to make a sampling decision.
Reservoir is a reservoir local to the running instance of the SDK.
Rule is local sampling rule.
RuleManifest represents a full sampling ruleset, with a list of custom rules and default values for incoming requests that do not match any of the provided rules.
# Interfaces
Strategy provides an interface for implementing trace sampling strategies.