private static String format(Double value, NumberFormat withinLongRange, NumberFormat outsideLongRange) {
        if ((value <= Long.MAX_VALUE) && (value >= Long.MIN_VALUE)) {
            return withinLongRange.format(value);
        } else {
            return outsideLongRange.format(value);
        }
    }
Returns an object mapper with a custom floating point serializer to avoid scientific notation
metrics-proxy/src/main/java/ai/vespa/metricsproxy/metric/model/json/JacksonUtil.java