sampling

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type OperationSamplingStrategy

type OperationSamplingStrategy struct {
	Operation             string                         `thrift:"operation,1,required" json:"operation"`
	ProbabilisticSampling *ProbabilisticSamplingStrategy `thrift:"probabilisticSampling,2,required" json:"probabilisticSampling"`
}

func NewOperationSamplingStrategy

func NewOperationSamplingStrategy() *OperationSamplingStrategy

func (*OperationSamplingStrategy) GetOperation

func (p *OperationSamplingStrategy) GetOperation() string

func (*OperationSamplingStrategy) GetProbabilisticSampling

func (p *OperationSamplingStrategy) GetProbabilisticSampling() *ProbabilisticSamplingStrategy

func (*OperationSamplingStrategy) IsSetProbabilisticSampling

func (p *OperationSamplingStrategy) IsSetProbabilisticSampling() bool

func (*OperationSamplingStrategy) Read

func (*OperationSamplingStrategy) ReadField1

func (p *OperationSamplingStrategy) ReadField1(iprot thrift.TProtocol) error

func (*OperationSamplingStrategy) ReadField2

func (p *OperationSamplingStrategy) ReadField2(iprot thrift.TProtocol) error

func (*OperationSamplingStrategy) String

func (p *OperationSamplingStrategy) String() string

func (*OperationSamplingStrategy) Write

type PerOperationSamplingStrategies

type PerOperationSamplingStrategies struct {
	DefaultSamplingProbability       float64                      `thrift:"defaultSamplingProbability,1,required" json:"defaultSamplingProbability"`
	DefaultLowerBoundTracesPerSecond float64                      `thrift:"defaultLowerBoundTracesPerSecond,2,required" json:"defaultLowerBoundTracesPerSecond"`
	PerOperationStrategies           []*OperationSamplingStrategy `thrift:"perOperationStrategies,3,required" json:"perOperationStrategies"`
}
var SamplingStrategyResponse_OperationSampling_DEFAULT *PerOperationSamplingStrategies

func NewPerOperationSamplingStrategies

func NewPerOperationSamplingStrategies() *PerOperationSamplingStrategies

func (*PerOperationSamplingStrategies) GetDefaultLowerBoundTracesPerSecond

func (p *PerOperationSamplingStrategies) GetDefaultLowerBoundTracesPerSecond() float64

func (*PerOperationSamplingStrategies) GetDefaultSamplingProbability

func (p *PerOperationSamplingStrategies) GetDefaultSamplingProbability() float64

func (*PerOperationSamplingStrategies) GetPerOperationStrategies

func (p *PerOperationSamplingStrategies) GetPerOperationStrategies() []*OperationSamplingStrategy

func (*PerOperationSamplingStrategies) Read

func (*PerOperationSamplingStrategies) ReadField1

func (*PerOperationSamplingStrategies) ReadField2

func (*PerOperationSamplingStrategies) ReadField3

func (*PerOperationSamplingStrategies) String

func (*PerOperationSamplingStrategies) Write

type ProbabilisticSamplingStrategy

type ProbabilisticSamplingStrategy struct {
	SamplingRate float64 `thrift:"samplingRate,1,required" json:"samplingRate"`
}
var OperationSamplingStrategy_ProbabilisticSampling_DEFAULT *ProbabilisticSamplingStrategy
var SamplingStrategyResponse_ProbabilisticSampling_DEFAULT *ProbabilisticSamplingStrategy

func NewProbabilisticSamplingStrategy

func NewProbabilisticSamplingStrategy() *ProbabilisticSamplingStrategy

func (*ProbabilisticSamplingStrategy) GetSamplingRate

func (p *ProbabilisticSamplingStrategy) GetSamplingRate() float64

func (*ProbabilisticSamplingStrategy) Read

func (*ProbabilisticSamplingStrategy) ReadField1

func (p *ProbabilisticSamplingStrategy) ReadField1(iprot thrift.TProtocol) error

func (*ProbabilisticSamplingStrategy) String

func (*ProbabilisticSamplingStrategy) Write

type RateLimitingSamplingStrategy

type RateLimitingSamplingStrategy struct {
	MaxTracesPerSecond int16 `thrift:"maxTracesPerSecond,1,required" json:"maxTracesPerSecond"`
}
var SamplingStrategyResponse_RateLimitingSampling_DEFAULT *RateLimitingSamplingStrategy

func NewRateLimitingSamplingStrategy

func NewRateLimitingSamplingStrategy() *RateLimitingSamplingStrategy

func (*RateLimitingSamplingStrategy) GetMaxTracesPerSecond

func (p *RateLimitingSamplingStrategy) GetMaxTracesPerSecond() int16

func (*RateLimitingSamplingStrategy) Read

func (*RateLimitingSamplingStrategy) ReadField1

func (p *RateLimitingSamplingStrategy) ReadField1(iprot thrift.TProtocol) error

func (*RateLimitingSamplingStrategy) String

func (*RateLimitingSamplingStrategy) Write

type SamplingStrategyResponse

type SamplingStrategyResponse struct {
	StrategyType          SamplingStrategyType            `thrift:"strategyType,1,required" json:"strategyType"`
	ProbabilisticSampling *ProbabilisticSamplingStrategy  `thrift:"probabilisticSampling,2" json:"probabilisticSampling"`
	RateLimitingSampling  *RateLimitingSamplingStrategy   `thrift:"rateLimitingSampling,3" json:"rateLimitingSampling"`
	OperationSampling     *PerOperationSamplingStrategies `thrift:"operationSampling,4" json:"operationSampling"`
}

func NewSamplingStrategyResponse

func NewSamplingStrategyResponse() *SamplingStrategyResponse

func (*SamplingStrategyResponse) GetOperationSampling

func (p *SamplingStrategyResponse) GetOperationSampling() *PerOperationSamplingStrategies

func (*SamplingStrategyResponse) GetProbabilisticSampling

func (p *SamplingStrategyResponse) GetProbabilisticSampling() *ProbabilisticSamplingStrategy

func (*SamplingStrategyResponse) GetRateLimitingSampling

func (p *SamplingStrategyResponse) GetRateLimitingSampling() *RateLimitingSamplingStrategy

func (*SamplingStrategyResponse) GetStrategyType

func (p *SamplingStrategyResponse) GetStrategyType() SamplingStrategyType

func (*SamplingStrategyResponse) IsSetOperationSampling

func (p *SamplingStrategyResponse) IsSetOperationSampling() bool

func (*SamplingStrategyResponse) IsSetProbabilisticSampling

func (p *SamplingStrategyResponse) IsSetProbabilisticSampling() bool

func (*SamplingStrategyResponse) IsSetRateLimitingSampling

func (p *SamplingStrategyResponse) IsSetRateLimitingSampling() bool

func (*SamplingStrategyResponse) Read

func (*SamplingStrategyResponse) ReadField1

func (p *SamplingStrategyResponse) ReadField1(iprot thrift.TProtocol) error

func (*SamplingStrategyResponse) ReadField2

func (p *SamplingStrategyResponse) ReadField2(iprot thrift.TProtocol) error

func (*SamplingStrategyResponse) ReadField3

func (p *SamplingStrategyResponse) ReadField3(iprot thrift.TProtocol) error

func (*SamplingStrategyResponse) ReadField4

func (p *SamplingStrategyResponse) ReadField4(iprot thrift.TProtocol) error

func (*SamplingStrategyResponse) String

func (p *SamplingStrategyResponse) String() string

func (*SamplingStrategyResponse) Write

type SamplingStrategyType

type SamplingStrategyType int64
const (
	SamplingStrategyType_PROBABILISTIC SamplingStrategyType = 0
	SamplingStrategyType_RATE_LIMITING SamplingStrategyType = 1
)

func SamplingStrategyTypeFromString

func SamplingStrategyTypeFromString(s string) (SamplingStrategyType, error)

func (SamplingStrategyType) String

func (p SamplingStrategyType) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL