@@ -24,7 +24,7 @@ func NewLabel(name, value string) metrics.Label {
2424// metric for a module with a given set of keys. If any global labels are defined,
2525// they will be added to the module label.
2626func ModuleMeasureSince (module string , start time.Time , keys ... string ) {
27- if ! isTelemetryEnabled () {
27+ if ! IsTelemetryEnabled () {
2828 return
2929 }
3030
@@ -39,7 +39,7 @@ func ModuleMeasureSince(module string, start time.Time, keys ...string) {
3939// module with a given set of keys. If any global labels are defined, they will
4040// be added to the module label.
4141func ModuleSetGauge (module string , val float32 , keys ... string ) {
42- if ! isTelemetryEnabled () {
42+ if ! IsTelemetryEnabled () {
4343 return
4444 }
4545
@@ -53,7 +53,7 @@ func ModuleSetGauge(module string, val float32, keys ...string) {
5353// IncrCounter provides a wrapper functionality for emitting a counter metric with
5454// global labels (if any).
5555func IncrCounter (val float32 , keys ... string ) {
56- if ! isTelemetryEnabled () {
56+ if ! IsTelemetryEnabled () {
5757 return
5858 }
5959
@@ -63,7 +63,7 @@ func IncrCounter(val float32, keys ...string) {
6363// IncrCounterWithLabels provides a wrapper functionality for emitting a counter
6464// metric with global labels (if any) along with the provided labels.
6565func IncrCounterWithLabels (keys []string , val float32 , labels []metrics.Label ) {
66- if ! isTelemetryEnabled () {
66+ if ! IsTelemetryEnabled () {
6767 return
6868 }
6969
@@ -73,7 +73,7 @@ func IncrCounterWithLabels(keys []string, val float32, labels []metrics.Label) {
7373// SetGauge provides a wrapper functionality for emitting a gauge metric with
7474// global labels (if any).
7575func SetGauge (val float32 , keys ... string ) {
76- if ! isTelemetryEnabled () {
76+ if ! IsTelemetryEnabled () {
7777 return
7878 }
7979
@@ -83,7 +83,7 @@ func SetGauge(val float32, keys ...string) {
8383// SetGaugeWithLabels provides a wrapper functionality for emitting a gauge
8484// metric with global labels (if any) along with the provided labels.
8585func SetGaugeWithLabels (keys []string , val float32 , labels []metrics.Label ) {
86- if ! isTelemetryEnabled () {
86+ if ! IsTelemetryEnabled () {
8787 return
8888 }
8989
@@ -93,7 +93,7 @@ func SetGaugeWithLabels(keys []string, val float32, labels []metrics.Label) {
9393// MeasureSince provides a wrapper functionality for emitting a a time measure
9494// metric with global labels (if any).
9595func MeasureSince (start time.Time , keys ... string ) {
96- if ! isTelemetryEnabled () {
96+ if ! IsTelemetryEnabled () {
9797 return
9898 }
9999
@@ -102,7 +102,7 @@ func MeasureSince(start time.Time, keys ...string) {
102102
103103// Now return the current time if telemetry is enabled or a zero time if it's not
104104func Now () time.Time {
105- if ! isTelemetryEnabled () {
105+ if ! IsTelemetryEnabled () {
106106 return time.Time {}
107107 }
108108
0 commit comments