Versions in this module Expand all Collapse all v1 v1.19.0 Feb 2, 2023 Changes in this version + const DefaultBatchTimeout + const DefaultMaxBatchSize + const DefaultMaxConcurrentBatches + const DefaultPendingWorkCapacity + var UserAgentAddition string + func AddField(name string, val interface{}) + func Close() + func Flush() + func TxResponses() chan transmission.Response + type Builder struct + APIHost string + Dataset string + SampleRate uint + WriteKey string + func NewBuilder() *Builder + func (b *Builder) Clone() *Builder + func (b *Builder) NewEvent() *Event + func (f *Builder) AddField(key string, val interface{}) + type Client struct + func NewClient(conf ClientConfig) (*Client, error) + func (c *Client) AddField(name string, val interface{}) + func (c *Client) Close() + func (c *Client) Flush() + func (c *Client) NewBuilder() *Builder + func (c *Client) NewEvent() *Event + func (c *Client) TxResponses() chan transmission.Response + type ClientConfig struct + APIHost string + Dataset string + Logger Logger + SampleRate uint + Transmission transmission.Sender + type Config struct + APIHost string + BlockOnResponse bool + BlockOnSend bool + Dataset string + Logger Logger + MaxBatchSize uint + MaxConcurrentBatches uint + Output Output + PendingWorkCapacity uint + SampleRate uint + SendFrequency time.Duration + Transmission transmission.Sender + Transport http.RoundTripper + type DefaultLogger struct + func (d *DefaultLogger) Printf(msg string, args ...interface{}) + type DiscardOutput struct + func (d *DiscardOutput) Add(ev *Event) + type Event struct + APIHost string + APITenantId string + APIToken string + Dataset string + Metadata interface{} + SampleRate uint + Timestamp time.Time + func NewEvent() *Event + func (e *Event) SendPresampled() (err error) + func (f *Event) AddField(key string, val interface{}) + type Logger interface + Printf func(msg string, args ...interface{}) + type MockOutput struct + func (w *MockOutput) Add(ev *Event) + type Output interface + Add func(ev *Event) + Start func() error + Stop func() error + type Response struct + type WriterOutput struct + func (w *WriterOutput) Add(ev *Event)