Click or drag to resize

Amazon.XRay.Recorder.Core.Sampling Namespace

 
Classes
  ClassDescription
Public classDefaultSamplingStrategy
Making sampling decisions based on sampling rules defined by X-Ray control plane APIs.It will fall back to LocalizedSamplingStrategy if sampling rules are not available.
Public classGetSamplingRulesResponse
Class for keep list of sampling rules from x-ray backend.
Public classGetSamplingTargetsResponse
Class for keep last rule modification timestamp and list of sampling targets from x-ray backend.
Public classReservior
Thread safe reservior which holds fixed sampling quota, borrowed count and TTL.
Public classRuleCache
Cache sampling rules and quota retrieved by RulePoller and TargetPoller. It will not return anything if the cache expires.
Public classRulePoller
Gets sampling rules from X-Ray service. This is a asynchronous operation.
Public classSamplingInput
Sampling input for "ShoudTrace" method.
Public classSamplingResponse
Sampling result returned by ShoudTrace().
Public classSamplingRule
It represents the Rules used for sampling.
Protected classServiceConnector
Connector class that translates Sampling poller functions to actual X-Ray back-end APIs and communicates with X-Ray daemon as the signing proxy.
Public classStatistics
This class records requests matched, borrowed and sampled count for the given rule.
Public classTarget
Stores records received from GetSamplingTargets API call.
Public classTargetPoller
The poller to report the current statistics of all sampling rules and retrieve the new allocated sampling quota and TTL from X-Ray service.
Public classTimeStamp
Stores timestamp for the operations in unix seconds.
Public classXRayConfig
Class for xray configuration for getting sampling rules and sampling targets.
Interfaces
  InterfaceDescription
Public interfaceISamplingStrategy
Interface of sampling strategy which is used to determine if tracing will be enabled for a given request.
Enumerations
  EnumerationDescription
Public enumerationReserviorDecision
An Enum of decisions, the reservoir could make based on assigned quota with TTL and the current timestamp/usage.
Public enumerationSampleDecision
Decisions for sampling