package
1.0.0-rc.5
Repository: https://github.com/unosoft/aws-xray-sdk-go.git
Documentation: pkg.go.dev

# Functions

ManifestFromFilePath creates a sampling ruleset from a given filepath fp.
ManifestFromJSONBytes creates a sampling ruleset from given JSON bytes b.
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.
NewReservoir creates a new reservoir with a specified perSecond sampling capacity.

# Structs

LocalizedStrategy makes trace sampling decisions based on a set of rules provided in a local JSON file.
Reservoir allows a specified amount of `Take()`s per second.
Rule represents a single entry in a sampling ruleset.
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.