Documentation ¶
Index ¶
- func RecordHistogram(ctx context.Context, histogram metric.Float64Histogram, value float64, ...)
- func RecordSum(ctx context.Context, counter metric.Int64Counter, value int64, ...)
- func RegisterGauge(meter metric.Meter, gc GaugeConfig) (metric.Float64ObservableGauge, error)
- func RegisterHistogram(meter metric.Meter, hc HistogramConfig) (metric.Float64Histogram, error)
- func RegisterSum(meter metric.Meter, sc SumConfig) (metric.Int64Counter, error)
- func SimulateHistogram(ctx context.Context, histogram metric.Float64Histogram, hc HistogramConfig)
- type GaugeConfig
- type HistogramConfig
- type SumConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecordHistogram ¶
func RegisterGauge ¶
func RegisterGauge(meter metric.Meter, gc GaugeConfig) (metric.Float64ObservableGauge, error)
func RegisterHistogram ¶
func RegisterHistogram(meter metric.Meter, hc HistogramConfig) (metric.Float64Histogram, error)
func RegisterSum ¶
func SimulateHistogram ¶
func SimulateHistogram(ctx context.Context, histogram metric.Float64Histogram, hc HistogramConfig)
Types ¶
type GaugeConfig ¶
type GaugeConfig struct { Name string Description string Unit string Attributes []attribute.KeyValue Min float64 Max float64 Temporality metricdata.Temporality }
type HistogramConfig ¶
Click to show internal directories.
Click to hide internal directories.