Documentation ¶
Index ¶
- func SimulateCounter(mp metric.MeterProvider, conf *Config, logger *zap.Logger)
- func SimulateExponentialHistogram(mp metric.MeterProvider, config ExponentialHistogramConfig, conf *Config, ...)
- func SimulateGauge(mp metric.MeterProvider, gaugeConfig GaugeConfig, conf *Config, ...)
- func SimulateHistogram(mp metric.MeterProvider, config HistogramConfig, conf *Config, ...)
- func SimulateSum(mp metric.MeterProvider, sumConfig SumConfig, conf *Config, logger *zap.Logger)
- func SimulateUpDownCounter(mp metric.MeterProvider, conf *Config, logger *zap.Logger)
- type Config
- type Exemplar
- type ExponentialHistogramConfig
- type ExponentialHistogramDataPoint
- type GaugeConfig
- type HeaderValue
- type HistogramConfig
- type HistogramDataPoint
- type SumConfig
- type Worker
- type WorkerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SimulateCounter ¶ added in v0.4.0
func SimulateCounter(mp metric.MeterProvider, conf *Config, logger *zap.Logger)
Counter demonstrates how to measure non-decreasing int64s
func SimulateExponentialHistogram ¶ added in v0.5.0
func SimulateExponentialHistogram(mp metric.MeterProvider, config ExponentialHistogramConfig, conf *Config, logger *zap.Logger)
func SimulateGauge ¶ added in v0.5.0
func SimulateGauge(mp metric.MeterProvider, gaugeConfig GaugeConfig, conf *Config, logger *zap.Logger)
func SimulateHistogram ¶ added in v0.4.0
func SimulateHistogram(mp metric.MeterProvider, config HistogramConfig, conf *Config, logger *zap.Logger)
func SimulateSum ¶ added in v0.5.0
func SimulateUpDownCounter ¶ added in v0.4.0
func SimulateUpDownCounter(mp metric.MeterProvider, conf *Config, logger *zap.Logger)
SimulateUpDownCounter demonstrates how to measure numbers that can go up and down
Types ¶
type ExponentialHistogramConfig ¶ added in v0.5.0
type ExponentialHistogramDataPoint ¶ added in v0.5.0
type GaugeConfig ¶ added in v0.5.0
type GaugeConfig struct { Name string Description string Unit string Attributes []attribute.KeyValue Min float64 Max float64 Temporality metricdata.Temporality }
type HeaderValue ¶
func (*HeaderValue) Set ¶
func (v *HeaderValue) Set(s string) error
func (*HeaderValue) String ¶
func (v *HeaderValue) String() string
type HistogramConfig ¶ added in v0.5.0
type HistogramConfig struct { Name string Description string Unit string Attributes []attribute.KeyValue Temporality metricdata.Temporality Bounds []float64 RecordMinMax bool }
type HistogramDataPoint ¶ added in v0.5.0
type SumConfig ¶ added in v0.5.0
type SumConfig struct { Name string Description string Unit string Attributes []attribute.KeyValue Temporality metricdata.Temporality IsMonotonic bool }
type Worker ¶ added in v0.4.0
type Worker struct {
// contains filtered or unexported fields
}
type WorkerFunc ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.