Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...Option) *Controller
func (*Controller) Meter ¶
func (c *Controller) Meter(instrumentationName string, opts ...metric.MeterOption) metric.Meter
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is the interface that applies the value to a configuration option.
func WithResource ¶
WithResource sets the Resource configuration option of a Config by merging it with the Resource configuration in the environment.
func WithStatsdClient ¶
func WithStatsdClient(s statsd.StatSender) Option
WithStatsdClient sets the StatsD client. If not set, a default one will be created.
func WithWorkerChanBufferSize ¶
WithWorkerChanBufferSize sets the size of the worker chan buffer. Default is workers * 10
func WithWorkers ¶
WithWorkers sets the number of Workers. If <= 0, send synchronously
Click to show internal directories.
Click to hide internal directories.