@@ -24,7 +24,7 @@ func NewLabel(name, value string) metrics.Label {
24
24
// metric for a module with a given set of keys. If any global labels are defined,
25
25
// they will be added to the module label.
26
26
func ModuleMeasureSince (module string , start time.Time , keys ... string ) {
27
- if ! isTelemetryEnabled () {
27
+ if ! IsTelemetryEnabled () {
28
28
return
29
29
}
30
30
@@ -39,7 +39,7 @@ func ModuleMeasureSince(module string, start time.Time, keys ...string) {
39
39
// module with a given set of keys. If any global labels are defined, they will
40
40
// be added to the module label.
41
41
func ModuleSetGauge (module string , val float32 , keys ... string ) {
42
- if ! isTelemetryEnabled () {
42
+ if ! IsTelemetryEnabled () {
43
43
return
44
44
}
45
45
@@ -53,7 +53,7 @@ func ModuleSetGauge(module string, val float32, keys ...string) {
53
53
// IncrCounter provides a wrapper functionality for emitting a counter metric with
54
54
// global labels (if any).
55
55
func IncrCounter (val float32 , keys ... string ) {
56
- if ! isTelemetryEnabled () {
56
+ if ! IsTelemetryEnabled () {
57
57
return
58
58
}
59
59
@@ -63,7 +63,7 @@ func IncrCounter(val float32, keys ...string) {
63
63
// IncrCounterWithLabels provides a wrapper functionality for emitting a counter
64
64
// metric with global labels (if any) along with the provided labels.
65
65
func IncrCounterWithLabels (keys []string , val float32 , labels []metrics.Label ) {
66
- if ! isTelemetryEnabled () {
66
+ if ! IsTelemetryEnabled () {
67
67
return
68
68
}
69
69
@@ -73,7 +73,7 @@ func IncrCounterWithLabels(keys []string, val float32, labels []metrics.Label) {
73
73
// SetGauge provides a wrapper functionality for emitting a gauge metric with
74
74
// global labels (if any).
75
75
func SetGauge (val float32 , keys ... string ) {
76
- if ! isTelemetryEnabled () {
76
+ if ! IsTelemetryEnabled () {
77
77
return
78
78
}
79
79
@@ -83,7 +83,7 @@ func SetGauge(val float32, keys ...string) {
83
83
// SetGaugeWithLabels provides a wrapper functionality for emitting a gauge
84
84
// metric with global labels (if any) along with the provided labels.
85
85
func SetGaugeWithLabels (keys []string , val float32 , labels []metrics.Label ) {
86
- if ! isTelemetryEnabled () {
86
+ if ! IsTelemetryEnabled () {
87
87
return
88
88
}
89
89
@@ -93,7 +93,7 @@ func SetGaugeWithLabels(keys []string, val float32, labels []metrics.Label) {
93
93
// MeasureSince provides a wrapper functionality for emitting a a time measure
94
94
// metric with global labels (if any).
95
95
func MeasureSince (start time.Time , keys ... string ) {
96
- if ! isTelemetryEnabled () {
96
+ if ! IsTelemetryEnabled () {
97
97
return
98
98
}
99
99
@@ -102,7 +102,7 @@ func MeasureSince(start time.Time, keys ...string) {
102
102
103
103
// Now return the current time if telemetry is enabled or a zero time if it's not
104
104
func Now () time.Time {
105
- if ! isTelemetryEnabled () {
105
+ if ! IsTelemetryEnabled () {
106
106
return time.Time {}
107
107
}
108
108
0 commit comments