private void send(Metric metric) { final Map<String, String> tags = tagExtractor.addTags(metric.getAttributes()); final Metric taggedMetric = metric.attributes(tags); try { client.send(taggedMetric); } catch (IOException e) { log.error("Failed to send metric", e); } }
final Map<String, String> commonTags = tagExtractor.addTags(prefix.getTags()); final Batch batch = new Batch(commonTags, points);