Documentation ¶
Index ¶
- Variables
- type OperationSamplingStrategy
- func (p *OperationSamplingStrategy) Equals(other *OperationSamplingStrategy) bool
- func (p *OperationSamplingStrategy) GetOperation() string
- func (p *OperationSamplingStrategy) GetProbabilisticSampling() *ProbabilisticSamplingStrategy
- func (p *OperationSamplingStrategy) IsSetProbabilisticSampling() bool
- func (p *OperationSamplingStrategy) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *OperationSamplingStrategy) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *OperationSamplingStrategy) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *OperationSamplingStrategy) String() string
- func (p *OperationSamplingStrategy) Validate() error
- func (p *OperationSamplingStrategy) Write(ctx context.Context, oprot thrift.TProtocol) error
- type PerOperationSamplingStrategies
- func (p *PerOperationSamplingStrategies) Equals(other *PerOperationSamplingStrategies) bool
- func (p *PerOperationSamplingStrategies) GetDefaultLowerBoundTracesPerSecond() float64
- func (p *PerOperationSamplingStrategies) GetDefaultSamplingProbability() float64
- func (p *PerOperationSamplingStrategies) GetDefaultUpperBoundTracesPerSecond() float64
- func (p *PerOperationSamplingStrategies) GetPerOperationStrategies() []*OperationSamplingStrategy
- func (p *PerOperationSamplingStrategies) IsSetDefaultUpperBoundTracesPerSecond() bool
- func (p *PerOperationSamplingStrategies) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PerOperationSamplingStrategies) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PerOperationSamplingStrategies) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PerOperationSamplingStrategies) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PerOperationSamplingStrategies) ReadField4(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PerOperationSamplingStrategies) String() string
- func (p *PerOperationSamplingStrategies) Validate() error
- func (p *PerOperationSamplingStrategies) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ProbabilisticSamplingStrategy
- func (p *ProbabilisticSamplingStrategy) Equals(other *ProbabilisticSamplingStrategy) bool
- func (p *ProbabilisticSamplingStrategy) GetSamplingRate() float64
- func (p *ProbabilisticSamplingStrategy) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ProbabilisticSamplingStrategy) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ProbabilisticSamplingStrategy) String() string
- func (p *ProbabilisticSamplingStrategy) Validate() error
- func (p *ProbabilisticSamplingStrategy) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RateLimitingSamplingStrategy
- func (p *RateLimitingSamplingStrategy) Equals(other *RateLimitingSamplingStrategy) bool
- func (p *RateLimitingSamplingStrategy) GetMaxTracesPerSecond() int16
- func (p *RateLimitingSamplingStrategy) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RateLimitingSamplingStrategy) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RateLimitingSamplingStrategy) String() string
- func (p *RateLimitingSamplingStrategy) Validate() error
- func (p *RateLimitingSamplingStrategy) Write(ctx context.Context, oprot thrift.TProtocol) error
- type SamplingManager
- type SamplingManagerClient
- func NewSamplingManagerClient(c thrift.TClient) *SamplingManagerClient
- func NewSamplingManagerClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *SamplingManagerClient
- func NewSamplingManagerClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *SamplingManagerClient
- func (p *SamplingManagerClient) Client_() thrift.TClient
- func (p *SamplingManagerClient) GetSamplingStrategy(ctx context.Context, serviceName string) (_r *SamplingStrategyResponse, _err error)
- func (p *SamplingManagerClient) LastResponseMeta_() thrift.ResponseMeta
- func (p *SamplingManagerClient) SetLastResponseMeta_(meta thrift.ResponseMeta)
- type SamplingManagerGetSamplingStrategyArgs
- func (p *SamplingManagerGetSamplingStrategyArgs) GetServiceName() string
- func (p *SamplingManagerGetSamplingStrategyArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SamplingManagerGetSamplingStrategyArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SamplingManagerGetSamplingStrategyArgs) String() string
- func (p *SamplingManagerGetSamplingStrategyArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type SamplingManagerGetSamplingStrategyResult
- func (p *SamplingManagerGetSamplingStrategyResult) GetSuccess() *SamplingStrategyResponse
- func (p *SamplingManagerGetSamplingStrategyResult) IsSetSuccess() bool
- func (p *SamplingManagerGetSamplingStrategyResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SamplingManagerGetSamplingStrategyResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SamplingManagerGetSamplingStrategyResult) String() string
- func (p *SamplingManagerGetSamplingStrategyResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type SamplingManagerProcessor
- func (p *SamplingManagerProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *SamplingManagerProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *SamplingManagerProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *SamplingManagerProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type SamplingStrategyResponse
- func (p *SamplingStrategyResponse) Equals(other *SamplingStrategyResponse) bool
- 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(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SamplingStrategyResponse) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SamplingStrategyResponse) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SamplingStrategyResponse) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SamplingStrategyResponse) ReadField4(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SamplingStrategyResponse) String() string
- func (p *SamplingStrategyResponse) Validate() error
- func (p *SamplingStrategyResponse) Write(ctx context.Context, oprot thrift.TProtocol) error
- type SamplingStrategyType
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
View Source
var PerOperationSamplingStrategies_DefaultUpperBoundTracesPerSecond_DEFAULT float64
Functions ¶
This section is empty.
Types ¶
type OperationSamplingStrategy ¶
type OperationSamplingStrategy struct { Operation string `thrift:"operation,1,required" db:"operation" json:"operation"` ProbabilisticSampling *ProbabilisticSamplingStrategy `thrift:"probabilisticSampling,2,required" db:"probabilisticSampling" json:"probabilisticSampling"` }
Attributes:
- Operation
- ProbabilisticSampling
func NewOperationSamplingStrategy ¶
func NewOperationSamplingStrategy() *OperationSamplingStrategy
func (*OperationSamplingStrategy) Equals ¶ added in v1.23.0
func (p *OperationSamplingStrategy) Equals(other *OperationSamplingStrategy) bool
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) ReadField1 ¶ added in v1.19.0
func (*OperationSamplingStrategy) ReadField2 ¶ added in v1.19.0
func (*OperationSamplingStrategy) String ¶
func (p *OperationSamplingStrategy) String() string
func (*OperationSamplingStrategy) Validate ¶ added in v1.53.0
func (p *OperationSamplingStrategy) Validate() error
type PerOperationSamplingStrategies ¶
type PerOperationSamplingStrategies struct { DefaultSamplingProbability float64 `thrift:"defaultSamplingProbability,1,required" db:"defaultSamplingProbability" json:"defaultSamplingProbability"` DefaultLowerBoundTracesPerSecond float64 `` /* 130-byte string literal not displayed */ PerOperationStrategies []*OperationSamplingStrategy `thrift:"perOperationStrategies,3,required" db:"perOperationStrategies" json:"perOperationStrategies"` DefaultUpperBoundTracesPerSecond *float64 `` /* 131-byte string literal not displayed */ }
Attributes:
- DefaultSamplingProbability
- DefaultLowerBoundTracesPerSecond
- PerOperationStrategies
- DefaultUpperBoundTracesPerSecond
var SamplingStrategyResponse_OperationSampling_DEFAULT *PerOperationSamplingStrategies
func NewPerOperationSamplingStrategies ¶
func NewPerOperationSamplingStrategies() *PerOperationSamplingStrategies
func (*PerOperationSamplingStrategies) Equals ¶ added in v1.23.0
func (p *PerOperationSamplingStrategies) Equals(other *PerOperationSamplingStrategies) bool
func (*PerOperationSamplingStrategies) GetDefaultLowerBoundTracesPerSecond ¶
func (p *PerOperationSamplingStrategies) GetDefaultLowerBoundTracesPerSecond() float64
func (*PerOperationSamplingStrategies) GetDefaultSamplingProbability ¶
func (p *PerOperationSamplingStrategies) GetDefaultSamplingProbability() float64
func (*PerOperationSamplingStrategies) GetDefaultUpperBoundTracesPerSecond ¶
func (p *PerOperationSamplingStrategies) GetDefaultUpperBoundTracesPerSecond() float64
func (*PerOperationSamplingStrategies) GetPerOperationStrategies ¶
func (p *PerOperationSamplingStrategies) GetPerOperationStrategies() []*OperationSamplingStrategy
func (*PerOperationSamplingStrategies) IsSetDefaultUpperBoundTracesPerSecond ¶
func (p *PerOperationSamplingStrategies) IsSetDefaultUpperBoundTracesPerSecond() bool
func (*PerOperationSamplingStrategies) ReadField1 ¶ added in v1.19.0
func (*PerOperationSamplingStrategies) ReadField2 ¶ added in v1.19.0
func (*PerOperationSamplingStrategies) ReadField3 ¶ added in v1.19.0
func (*PerOperationSamplingStrategies) ReadField4 ¶ added in v1.19.0
func (*PerOperationSamplingStrategies) String ¶
func (p *PerOperationSamplingStrategies) String() string
func (*PerOperationSamplingStrategies) Validate ¶ added in v1.53.0
func (p *PerOperationSamplingStrategies) Validate() error
type ProbabilisticSamplingStrategy ¶
type ProbabilisticSamplingStrategy struct {
SamplingRate float64 `thrift:"samplingRate,1,required" db:"samplingRate" json:"samplingRate"`
}
Attributes:
- SamplingRate
var OperationSamplingStrategy_ProbabilisticSampling_DEFAULT *ProbabilisticSamplingStrategy
var SamplingStrategyResponse_ProbabilisticSampling_DEFAULT *ProbabilisticSamplingStrategy
func NewProbabilisticSamplingStrategy ¶
func NewProbabilisticSamplingStrategy() *ProbabilisticSamplingStrategy
func (*ProbabilisticSamplingStrategy) Equals ¶ added in v1.23.0
func (p *ProbabilisticSamplingStrategy) Equals(other *ProbabilisticSamplingStrategy) bool
func (*ProbabilisticSamplingStrategy) GetSamplingRate ¶
func (p *ProbabilisticSamplingStrategy) GetSamplingRate() float64
func (*ProbabilisticSamplingStrategy) ReadField1 ¶ added in v1.19.0
func (*ProbabilisticSamplingStrategy) String ¶
func (p *ProbabilisticSamplingStrategy) String() string
func (*ProbabilisticSamplingStrategy) Validate ¶ added in v1.53.0
func (p *ProbabilisticSamplingStrategy) Validate() error
type RateLimitingSamplingStrategy ¶
type RateLimitingSamplingStrategy struct {
MaxTracesPerSecond int16 `thrift:"maxTracesPerSecond,1,required" db:"maxTracesPerSecond" json:"maxTracesPerSecond"`
}
Attributes:
- MaxTracesPerSecond
var SamplingStrategyResponse_RateLimitingSampling_DEFAULT *RateLimitingSamplingStrategy
func NewRateLimitingSamplingStrategy ¶
func NewRateLimitingSamplingStrategy() *RateLimitingSamplingStrategy
func (*RateLimitingSamplingStrategy) Equals ¶ added in v1.23.0
func (p *RateLimitingSamplingStrategy) Equals(other *RateLimitingSamplingStrategy) bool
func (*RateLimitingSamplingStrategy) GetMaxTracesPerSecond ¶
func (p *RateLimitingSamplingStrategy) GetMaxTracesPerSecond() int16
func (*RateLimitingSamplingStrategy) ReadField1 ¶ added in v1.19.0
func (*RateLimitingSamplingStrategy) String ¶
func (p *RateLimitingSamplingStrategy) String() string
func (*RateLimitingSamplingStrategy) Validate ¶ added in v1.53.0
func (p *RateLimitingSamplingStrategy) Validate() error
type SamplingManager ¶
type SamplingManager interface { // Parameters: // - ServiceName GetSamplingStrategy(ctx context.Context, serviceName string) (_r *SamplingStrategyResponse, _err error) }
type SamplingManagerClient ¶
type SamplingManagerClient struct {
// contains filtered or unexported fields
}
func NewSamplingManagerClient ¶ added in v1.19.0
func NewSamplingManagerClient(c thrift.TClient) *SamplingManagerClient
func NewSamplingManagerClientFactory ¶
func NewSamplingManagerClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *SamplingManagerClient
func NewSamplingManagerClientProtocol ¶
func NewSamplingManagerClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *SamplingManagerClient
func (*SamplingManagerClient) Client_ ¶ added in v1.19.0
func (p *SamplingManagerClient) Client_() thrift.TClient
func (*SamplingManagerClient) GetSamplingStrategy ¶
func (p *SamplingManagerClient) GetSamplingStrategy(ctx context.Context, serviceName string) (_r *SamplingStrategyResponse, _err error)
Parameters:
- ServiceName
func (*SamplingManagerClient) LastResponseMeta_ ¶ added in v1.23.0
func (p *SamplingManagerClient) LastResponseMeta_() thrift.ResponseMeta
func (*SamplingManagerClient) SetLastResponseMeta_ ¶ added in v1.23.0
func (p *SamplingManagerClient) SetLastResponseMeta_(meta thrift.ResponseMeta)
type SamplingManagerGetSamplingStrategyArgs ¶
type SamplingManagerGetSamplingStrategyArgs struct {
ServiceName string `thrift:"serviceName,1" db:"serviceName" json:"serviceName"`
}
Attributes:
- ServiceName
func NewSamplingManagerGetSamplingStrategyArgs ¶
func NewSamplingManagerGetSamplingStrategyArgs() *SamplingManagerGetSamplingStrategyArgs
func (*SamplingManagerGetSamplingStrategyArgs) GetServiceName ¶
func (p *SamplingManagerGetSamplingStrategyArgs) GetServiceName() string
func (*SamplingManagerGetSamplingStrategyArgs) ReadField1 ¶ added in v1.19.0
func (*SamplingManagerGetSamplingStrategyArgs) String ¶
func (p *SamplingManagerGetSamplingStrategyArgs) String() string
type SamplingManagerGetSamplingStrategyResult ¶
type SamplingManagerGetSamplingStrategyResult struct {
Success *SamplingStrategyResponse `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewSamplingManagerGetSamplingStrategyResult ¶
func NewSamplingManagerGetSamplingStrategyResult() *SamplingManagerGetSamplingStrategyResult
func (*SamplingManagerGetSamplingStrategyResult) GetSuccess ¶
func (p *SamplingManagerGetSamplingStrategyResult) GetSuccess() *SamplingStrategyResponse
func (*SamplingManagerGetSamplingStrategyResult) IsSetSuccess ¶
func (p *SamplingManagerGetSamplingStrategyResult) IsSetSuccess() bool
func (*SamplingManagerGetSamplingStrategyResult) ReadField0 ¶ added in v1.19.0
func (*SamplingManagerGetSamplingStrategyResult) String ¶
func (p *SamplingManagerGetSamplingStrategyResult) String() string
type SamplingManagerProcessor ¶
type SamplingManagerProcessor struct {
// contains filtered or unexported fields
}
func NewSamplingManagerProcessor ¶
func NewSamplingManagerProcessor(handler SamplingManager) *SamplingManagerProcessor
func (*SamplingManagerProcessor) AddToProcessorMap ¶
func (p *SamplingManagerProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*SamplingManagerProcessor) GetProcessorFunction ¶
func (p *SamplingManagerProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*SamplingManagerProcessor) Process ¶
func (p *SamplingManagerProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*SamplingManagerProcessor) ProcessorMap ¶
func (p *SamplingManagerProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type SamplingStrategyResponse ¶
type SamplingStrategyResponse struct { StrategyType SamplingStrategyType `thrift:"strategyType,1,required" db:"strategyType" json:"strategyType"` ProbabilisticSampling *ProbabilisticSamplingStrategy `thrift:"probabilisticSampling,2" db:"probabilisticSampling" json:"probabilisticSampling,omitempty"` RateLimitingSampling *RateLimitingSamplingStrategy `thrift:"rateLimitingSampling,3" db:"rateLimitingSampling" json:"rateLimitingSampling,omitempty"` OperationSampling *PerOperationSamplingStrategies `thrift:"operationSampling,4" db:"operationSampling" json:"operationSampling,omitempty"` }
Attributes:
- StrategyType
- ProbabilisticSampling
- RateLimitingSampling
- OperationSampling
var SamplingManagerGetSamplingStrategyResult_Success_DEFAULT *SamplingStrategyResponse
func NewSamplingStrategyResponse ¶
func NewSamplingStrategyResponse() *SamplingStrategyResponse
func (*SamplingStrategyResponse) Equals ¶ added in v1.23.0
func (p *SamplingStrategyResponse) Equals(other *SamplingStrategyResponse) bool
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) ReadField1 ¶ added in v1.19.0
func (*SamplingStrategyResponse) ReadField2 ¶ added in v1.19.0
func (*SamplingStrategyResponse) ReadField3 ¶ added in v1.19.0
func (*SamplingStrategyResponse) ReadField4 ¶ added in v1.19.0
func (*SamplingStrategyResponse) String ¶
func (p *SamplingStrategyResponse) String() string
func (*SamplingStrategyResponse) Validate ¶ added in v1.53.0
func (p *SamplingStrategyResponse) Validate() error
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) MarshalText ¶
func (p SamplingStrategyType) MarshalText() ([]byte, error)
func (*SamplingStrategyType) Scan ¶ added in v1.19.0
func (p *SamplingStrategyType) Scan(value interface{}) error
func (SamplingStrategyType) String ¶
func (p SamplingStrategyType) String() string
func (*SamplingStrategyType) UnmarshalText ¶
func (p *SamplingStrategyType) UnmarshalText(text []byte) error
Click to show internal directories.
Click to hide internal directories.