Versions in this module Expand all Collapse all v2 v2.0.0 Feb 21, 2025 Changes in this version + type CentralizedManifest struct + Default *CentralizedRule + Index map[string]*CentralizedRule + Rules []*CentralizedRule + type CentralizedReservoir struct + func (r *CentralizedReservoir) Take(now int64) bool + type CentralizedRule struct + func (r *CentralizedRule) AppliesTo(request *Request) bool + func (r *CentralizedRule) Sample() *Decision + type CentralizedStrategy struct + func NewCentralizedStrategy() (*CentralizedStrategy, error) + func NewCentralizedStrategyWithFilePath(fp string) (*CentralizedStrategy, error) + func NewCentralizedStrategyWithJSONBytes(b []byte) (*CentralizedStrategy, error) + func (ss *CentralizedStrategy) LoadDaemonEndpoints(endpoints *daemoncfg.DaemonEndpoints) + func (ss *CentralizedStrategy) ShouldTrace(request *Request) *Decision + type Decision struct + Rule *string + Sample bool + type GetSamplingRulesInput struct + NextToken *string + type GetSamplingRulesOutput struct + NextToken *string + SamplingRuleRecords []*SamplingRuleRecord + type GetSamplingTargetsInput struct + SamplingStatisticsDocuments []*SamplingStatisticsDocument + type GetSamplingTargetsOutput struct + LastRuleModification *float64 + SamplingTargetDocuments []*SamplingTargetDocument + UnprocessedStatistics []*UnprocessedStatistics + type LocalizedStrategy struct + func NewLocalizedStrategy() (*LocalizedStrategy, error) + func NewLocalizedStrategyFromFilePath(fp string) (*LocalizedStrategy, error) + func NewLocalizedStrategyFromJSONBytes(b []byte) (*LocalizedStrategy, error) + func (lss *LocalizedStrategy) ShouldTrace(rq *Request) *Decision + type Properties struct + FixedTarget int64 + HTTPMethod string + Host string + Rate float64 + ServiceName string + URLPath string + func (p *Properties) AppliesTo(host, path, method string) bool + type Request struct + Host string + Method string + ServiceName string + ServiceType string + URL string + type Reservoir struct + func (r *Reservoir) Take() bool + type Rule struct + func (r *Rule) Sample() *Decision + type RuleManifest struct + Default *Rule + Rules []*Rule + Version int + func ManifestFromFilePath(fp string) (*RuleManifest, error) + func ManifestFromJSONBytes(b []byte) (*RuleManifest, error) + type SamplingRule struct + Attributes map[string]*string + FixedRate *float64 + HTTPMethod *string + Host *string + Priority *int64 + ReservoirSize *int64 + ResourceARN *string + RuleARN *string + RuleName *string + ServiceName *string + ServiceType *string + URLPath *string + Version *int64 + type SamplingRuleRecord struct + CreatedAt *float64 + ModifiedAt *float64 + SamplingRule *SamplingRule + type SamplingStatisticsDocument struct + BorrowCount *int64 + ClientID *string + RequestCount *int64 + RuleName *string + SampledCount *int64 + Timestamp *int64 + type SamplingTargetDocument struct + FixedRate *float64 + Interval *int64 + ReservoirQuota *int64 + ReservoirQuotaTTL *float64 + RuleName *string + type Strategy interface + ShouldTrace func(request *Request) *Decision + type UnprocessedStatistics struct + ErrorCode *string + Message *string + RuleName *string Other modules containing this package github.com/jj22ee/aws-xray-sdk-go