aboutsummaryrefslogtreecommitdiffstats
path: root/library/go/core/metrics/nop/histogram.go
blob: bde571323cf8417384e38722f96e4db36d0596b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package nop

import (
	"time"

	"github.com/ydb-platform/ydb/library/go/core/metrics"
)

var (
	_ metrics.Histogram = (*Histogram)(nil)
	_ metrics.Timer     = (*Histogram)(nil)
)

type Histogram struct{}

func (Histogram) RecordValue(_ float64) {}

func (Histogram) RecordDuration(_ time.Duration) {}

var _ metrics.HistogramVec = (*HistogramVec)(nil)

type HistogramVec struct{}

func (t HistogramVec) With(_ map[string]string) metrics.Histogram {
	return Histogram{}
}

func (t HistogramVec) Reset() {}

var _ metrics.TimerVec = (*DurationHistogramVec)(nil)

type DurationHistogramVec struct{}

func (t DurationHistogramVec) With(_ map[string]string) metrics.Timer {
	return Histogram{}
}

func (t DurationHistogramVec) Reset() {}