Documentation ¶
Index ¶
- Variables
- type OperationSamplingStrategy
- func (p *OperationSamplingStrategy) GetOperation() string
- func (p *OperationSamplingStrategy) GetProbabilisticSampling() *ProbabilisticSamplingStrategy
- func (p *OperationSamplingStrategy) IsSetProbabilisticSampling() bool
- func (p *OperationSamplingStrategy) Read(iprot thrift.TProtocol) error
- func (p *OperationSamplingStrategy) ReadField1(iprot thrift.TProtocol) error
- func (p *OperationSamplingStrategy) ReadField2(iprot thrift.TProtocol) error
- func (p *OperationSamplingStrategy) String() string
- func (p *OperationSamplingStrategy) Write(oprot thrift.TProtocol) error
- type PerOperationSamplingStrategies
- func (p *PerOperationSamplingStrategies) GetDefaultLowerBoundTracesPerSecond() float64
- func (p *PerOperationSamplingStrategies) GetDefaultSamplingProbability() float64
- func (p *PerOperationSamplingStrategies) GetPerOperationStrategies() []*OperationSamplingStrategy
- func (p *PerOperationSamplingStrategies) Read(iprot thrift.TProtocol) error
- func (p *PerOperationSamplingStrategies) ReadField1(iprot thrift.TProtocol) error
- func (p *PerOperationSamplingStrategies) ReadField2(iprot thrift.TProtocol) error
- func (p *PerOperationSamplingStrategies) ReadField3(iprot thrift.TProtocol) error
- func (p *PerOperationSamplingStrategies) String() string
- func (p *PerOperationSamplingStrategies) Write(oprot thrift.TProtocol) error
- type ProbabilisticSamplingStrategy
- func (p *ProbabilisticSamplingStrategy) GetSamplingRate() float64
- func (p *ProbabilisticSamplingStrategy) Read(iprot thrift.TProtocol) error
- func (p *ProbabilisticSamplingStrategy) ReadField1(iprot thrift.TProtocol) error
- func (p *ProbabilisticSamplingStrategy) String() string
- func (p *ProbabilisticSamplingStrategy) Write(oprot thrift.TProtocol) error
- type RateLimitingSamplingStrategy
- func (p *RateLimitingSamplingStrategy) GetMaxTracesPerSecond() int16
- func (p *RateLimitingSamplingStrategy) Read(iprot thrift.TProtocol) error
- func (p *RateLimitingSamplingStrategy) ReadField1(iprot thrift.TProtocol) error
- func (p *RateLimitingSamplingStrategy) String() string
- func (p *RateLimitingSamplingStrategy) Write(oprot thrift.TProtocol) error
- type SamplingStrategyResponse
- func (p *SamplingStrategyResponse) GetOperationSampling() *PerOperationSamplingStrategies
- func (p *SamplingStrategyResponse) GetProbabilisticSampling() *ProbabilisticSamplingStrategy
- func (p *SamplingStrategyResponse) GetRateLimitingSampling() *RateLimitingSamplingStrategy
- func (p *SamplingStrategyResponse) GetStrategyType() SamplingStrategyType
- func (p *SamplingStrategyResponse) IsSetOperationSampling() bool
- func (p *SamplingStrategyResponse) IsSetProbabilisticSampling() bool
- func (p *SamplingStrategyResponse) IsSetRateLimitingSampling() bool
- func (p *SamplingStrategyResponse) Read(iprot thrift.TProtocol) error
- func (p *SamplingStrategyResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *SamplingStrategyResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *SamplingStrategyResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *SamplingStrategyResponse) ReadField4(iprot thrift.TProtocol) error
- func (p *SamplingStrategyResponse) String() string
- func (p *SamplingStrategyResponse) Write(oprot thrift.TProtocol) error
- type SamplingStrategyType
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 (p *OperationSamplingStrategy) Read(iprot thrift.TProtocol) error
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
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 (p *PerOperationSamplingStrategies) Read(iprot thrift.TProtocol) error
func (*PerOperationSamplingStrategies) ReadField1 ¶
func (p *PerOperationSamplingStrategies) ReadField1(iprot thrift.TProtocol) error
func (*PerOperationSamplingStrategies) ReadField2 ¶
func (p *PerOperationSamplingStrategies) ReadField2(iprot thrift.TProtocol) error
func (*PerOperationSamplingStrategies) ReadField3 ¶
func (p *PerOperationSamplingStrategies) ReadField3(iprot thrift.TProtocol) error
func (*PerOperationSamplingStrategies) String ¶
func (p *PerOperationSamplingStrategies) String() string
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 (p *ProbabilisticSamplingStrategy) Read(iprot thrift.TProtocol) error
func (*ProbabilisticSamplingStrategy) ReadField1 ¶
func (p *ProbabilisticSamplingStrategy) ReadField1(iprot thrift.TProtocol) error
func (*ProbabilisticSamplingStrategy) String ¶
func (p *ProbabilisticSamplingStrategy) String() string
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 (p *RateLimitingSamplingStrategy) Read(iprot thrift.TProtocol) error
func (*RateLimitingSamplingStrategy) ReadField1 ¶
func (p *RateLimitingSamplingStrategy) ReadField1(iprot thrift.TProtocol) error
func (*RateLimitingSamplingStrategy) String ¶
func (p *RateLimitingSamplingStrategy) String() string
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 (p *SamplingStrategyResponse) Read(iprot thrift.TProtocol) error
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
type SamplingStrategyType ¶
type SamplingStrategyType int64
const ( SamplingStrategyType_PROBABILISTIC SamplingStrategyType = 0 SamplingStrategyType_RATE_LIMITING SamplingStrategyType = 1 )
func SamplingStrategyTypeFromString ¶
func SamplingStrategyTypeFromString(s string) (SamplingStrategyType, error)
func SamplingStrategyTypePtr ¶
func SamplingStrategyTypePtr(v SamplingStrategyType) *SamplingStrategyType
func (SamplingStrategyType) String ¶
func (p SamplingStrategyType) String() string
Click to show internal directories.
Click to hide internal directories.