@Test public void shouldIncrementErrorCounter() { counter.onError(); assertThat(getValue(RequestOutcome.ERROR)).isEqualTo(1); assertThat(getValue(RequestOutcome.SUCCESS)).isZero(); assertThat(getValue(RequestOutcome.DATA_UNAVAILABLE)).isZero(); }
public void onError() { recordRequest(RequestOutcome.ERROR); }
BeaconChainRequestCounter { public void onError() { recordRequest(RequestOutcome.ERROR); } }
BeaconChainRequestCounter { public void onError() { recordRequest(RequestOutcome.ERROR); } BeaconChainRequestCounter(final LabelledMetric<Counter> counter); }
BeaconChainRequestCounter { public void onError() { recordRequest(RequestOutcome.ERROR); } BeaconChainRequestCounter(final LabelledMetric<Counter> counter); static BeaconChainRequestCounter create(
      final MetricsSystem metricsSystem, final String name, final String help); void onSuccess(); void onDataUnavailable(); void onError(); }
BeaconChainRequestCounter { public void onError() { recordRequest(RequestOutcome.ERROR); } BeaconChainRequestCounter(final LabelledMetric<Counter> counter); static BeaconChainRequestCounter create(
      final MetricsSystem metricsSystem, final String name, final String help); void onSuccess(); void onDataUnavailable(); void onError();  }