class LookoutSpringBootMetricsImpl implements CounterService, GaugeService {

    @Override
    public void submit(String metricName, double value) {
        if (StringUtils.isBlank(metricName)) {
            return;
        }
        metricName = wrapName(LOOKOUT_GAUGE_PREFIX, metricName);
        SimpleLookoutGauge gauge = this.gauges.get(metricName);
        if (gauge == null) {
            SimpleLookoutGauge newGauge = new SimpleLookoutGauge(value);
            gauge = this.gauges.putIfAbsent(metricName, newGauge);
            if (gauge == null) {
                Id id = this.registry.createId(metricName);
                this.registry.gauge(id, newGauge);
                return;
            }
        }
        gauge.setValue(value);
    }

    public  LookoutSpringBootMetricsImpl(Registry registry);

}