Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sampler ¶
type Sampler struct {
Resource string
Name string
Tags []control.Tag
Config control.SamplerConfig
Instances map[control.SamplerUID]*SamplerInstance
}
func NewSampler ¶
func (*Sampler) GetInstance ¶
func (s *Sampler) GetInstance(uid control.SamplerUID) (*SamplerInstance, bool)
func (*Sampler) SetInstance ¶
func (s *Sampler) SetInstance(uid control.SamplerUID, samplerInstance *SamplerInstance)
type SamplerConn ¶
type SamplerConn interface {
Configure(*control.SamplerConfig) error
}
type SamplerIdentifier ¶
func NewSamplerIdentifier ¶
func NewSamplerIdentifier(resource string, name string) SamplerIdentifier
type SamplerInstance ¶
type SamplerInstance struct {
UID control.SamplerUID
Sampler *Sampler
Stats control.SamplerSamplingStats
Conn SamplerConn
Dirty bool
Status Status
}
func NewSamplerInstance ¶
func NewSamplerInstance(uid control.SamplerUID, sampler *Sampler) *SamplerInstance
Click to show internal directories.
Click to hide internal directories.