private void handleMetricBatch(List<RequestMetric> batch) {
        String encodedBatch = encodeBatch(batch);
        driver.write(encodedBatch, (InfluxException result) -> {
            if (result.isBadResponse()) {
                IHttpClientResponse httpResponse = result.getResponse();
                LOGGER.error(result,
                        "Influx stats error. Code: {0} with message: {1}",
                        httpResponse.getResponseCode(),
                        httpResponse.getResponseMessage());
            } else {
                LOGGER.error(result.getMessage(), result);
            }
        });
    }
Constructor.
@param config plugin configuration options
gateway/engine/influxdb/src/main/java/io/apiman/gateway/engine/influxdb/InfluxDbMetrics.java