MetricsHelper { public static Timer recordHttpServerProcessingTime(Sample sample, String tenant, int httpStatusCode, String httpMethod, ModuleInstance moduleInstance) { return recordHttpTime(sample, tenant, httpStatusCode, httpMethod, moduleInstance, true); } private  MetricsHelper(); static void config(VertxOptions vertxOptions, String influxUrl,
      String influxDbName, String influxUserName, String influxPassword); static Sample getTimerSample(); static Timer recordHttpServerProcessingTime(Sample sample, String tenant,
      int httpStatusCode, String httpMethod, ModuleInstance moduleInstance); static Timer recordHttpClientResponse(Sample sample, String tenant, int httpStatusCode,
      String httpMethod, ModuleInstance moduleInstance); static Counter recordHttpClientError(String tenant, String httpMethod, String urlPath); static boolean isEnabled(); static void setEnabled(boolean enabled);  }
@Test void testRecordHttpServerProcessingTime() { Timer.Sample sample = MetricsHelper.getTimerSample(); Timer timer = MetricsHelper.recordHttpServerProcessingTime(sample, "a", 200, "GET", null); assertEquals(1, timer.count()); ModuleInstance mi = createModuleInstance(true); timer = MetricsHelper.recordHttpServerProcessingTime(sample, "a", 200, "GET", mi); assertEquals(1, timer.count()); timer = MetricsHelper.recordHttpServerProcessingTime(sample, null, 200, null, mi); assertEquals(1, timer.count()); }