Documentation
¶
Index ¶
- type ConfigUpdate
- type Event
- type Option
- func WihKeepAliveMaxPeriod(t time.Duration) Option
- func WithAuthBearer(token string) Option
- func WithConnTimeout(t time.Duration) Option
- func WithInitialConfig(c control.SamplerConfigUpdate) Option
- func WithLogger(l logging.Logger) Option
- func WithResponseTimeout(t time.Duration) Option
- func WithServerReqsQueueLen(l int) Option
- func WithTLS() Option
- func WithTLSCACert(path string) Option
- func WithTags(tags ...control.Tag) Option
- type Sampler
- func (p *Sampler) Close(timeout time.Duration) error
- func (p *Sampler) Config() control.SamplerConfig
- func (p *Sampler) Connect(serverAddr string) error
- func (p *Sampler) Events() chan Event
- func (p *Sampler) Name() string
- func (p *Sampler) State() State
- func (p *Sampler) UID() control.SamplerUID
- func (p *Sampler) UpdateStats(ctx context.Context, stats control.SamplerSamplingStats) error
- type State
- type StateUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigUpdate ¶
type ConfigUpdate struct {
Config control.SamplerConfig
}
func (ConfigUpdate) String ¶
func (p ConfigUpdate) String() string
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WihKeepAliveMaxPeriod ¶
func WithAuthBearer ¶
func WithConnTimeout ¶
func WithInitialConfig ¶ added in v0.1.0
func WithInitialConfig(c control.SamplerConfigUpdate) Option
func WithLogger ¶
func WithResponseTimeout ¶
func WithServerReqsQueueLen ¶
func WithTLSCACert ¶
type Sampler ¶
type Sampler struct {
// contains filtered or unexported fields
}
func (*Sampler) Config ¶
func (p *Sampler) Config() control.SamplerConfig
func (*Sampler) UID ¶
func (p *Sampler) UID() control.SamplerUID
func (*Sampler) UpdateStats ¶
type StateUpdate ¶
type StateUpdate struct {
State State
}
func (StateUpdate) String ¶
func (p StateUpdate) String() string
Click to show internal directories.
Click to hide internal directories.