Remove temp SCOPE_METRIC_DISABLE flag.
@@ -9,7 +9,6 @@ struct _mtc_t
{
transport_t* transport;
mtc_fmt_t* format;
- int metric_disabled;
};
mtc_t *
@@ -21,10 +20,6 @@ mtcCreate()
return NULL;
}
- // TBD. This is a quick and dirty way to disable metric output.
- // Added 31-Jan-2020 for a demo.
- mtc->metric_disabled = (getenv("SCOPE_METRIC_DISABLE") != NULL);
-
return mtc;
}
@@ -52,8 +47,6 @@ mtcSendMetric(mtc_t *mtc, event_t *evt)
{
if (!mtc || !evt) return -1;
- if (mtc->metric_disabled) return 0;
-
char *msg = mtcFormatStatsDString(mtc->format, evt, NULL);
int rv = mtcSend(mtc, msg);
if (msg) free(msg);
