Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmptyMeterOption ¶
type EmptyMeterOption struct{}
EmptyMeterOption does not alter the configuration. It can be embedded in another structure to build custom options.
This API is EXPERIMENTAL.
type Meter ¶
type Meter struct { Controller controller.Controller // contains filtered or unexported fields }
func NewMeter ¶
func NewMeter(opts ...MeterOption) *Meter
func (*Meter) ApplyOptions ¶
func (o *Meter) ApplyOptions(options ...MeterOption) *Meter
type MeterOptinos ¶
type MeterOptinos struct { PushExporterBuilder PushExporterBuilder PullExporterBuilder PullExporterBuilder // contains filtered or unexported fields }
type MeterOption ¶
type MeterOption interface {
// contains filtered or unexported methods
}
A MeterOption sets options.
func WithCollectPeriod ¶
func WithCollectPeriod(period time.Duration) MeterOption
func WithPullExporter ¶
func WithPullExporter(pullExporterBuilder PullExporterBuilder) MeterOption
func WithPushExporter ¶
func WithPushExporter(pushExporterBuilder PushExporterBuilder) MeterOption
type MeterOptionFunc ¶
type MeterOptionFunc func(*Meter)
MeterOptionFunc wraps a function that modifies Client into an implementation of the MeterOption interface.
type PullExporterBuilder ¶
type PullExporterBuilder interface {
Build(ctx context.Context, c *controller.Controller) (aggregation.TemporalitySelector, error)
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.