package
2.0.0
Repository: https://github.com/aws/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.
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.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
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.
A sampling rule that services use to decide whether to instrument a request.
A SamplingRule (https://docs.aws.amazon.com/xray/latest/api/API_SamplingRule.html) and its metadata.
No description provided by the author
Temporary changes to a sampling rule configuration.
Sampling statistics from a call to GetSamplingTargets (https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingTargets.html) that X-Ray could not process.

# Interfaces

Strategy provides an interface for implementing trace sampling strategies.