Documentation
¶
Index ¶
- type Recorder
- func (r *Recorder) Handler() http.Handler
- func (r *Recorder) IncCounter(_ context.Context, name observability.MetricName, ...)
- func (r *Recorder) ObserveHistogram(_ context.Context, name observability.MetricName, value float64, ...)
- func (r *Recorder) RecordQueueMetrics(ctx context.Context, queue async.Queue) error
- func (r *Recorder) SetGauge(_ context.Context, name observability.MetricName, value float64, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
func NewRecorder ¶
func NewRecorder() *Recorder
func (*Recorder) IncCounter ¶
func (r *Recorder) IncCounter(_ context.Context, name observability.MetricName, attrs ...observability.Attribute)
func (*Recorder) ObserveHistogram ¶
func (r *Recorder) ObserveHistogram(_ context.Context, name observability.MetricName, value float64, attrs ...observability.Attribute)
func (*Recorder) RecordQueueMetrics ¶
RecordQueueMetrics updates queue depth gauges from a queue that implements JobAdmin.
func (*Recorder) SetGauge ¶
func (r *Recorder) SetGauge(_ context.Context, name observability.MetricName, value float64, attrs ...observability.Attribute)
Click to show internal directories.
Click to hide internal directories.