@Override public void close() throws IOException { try { this.closer.close(); } catch (IOException exception) { LOGGER.warn("Failed to close output streams."); } finally { super.close(); } }
@Override protected void report(SortedMap<String, Gauge> gauges, SortedMap<String, Counter> counters, SortedMap<String, Histogram> histograms, SortedMap<String, Meter> meters, SortedMap<String, Timer> timers, Map<String, Object> tags, boolean isFinal) { if (isFinal) { report(gauges, counters, histograms, meters, timers, ImmutableMap.<String, Object>builder().putAll(tags).put(FINAL_TAG_KEY, Boolean.TRUE).build()); } else { report(gauges, counters, histograms, meters, timers, tags); } }
@Override protected void report(SortedMap<String, Gauge> gauges, SortedMap<String, Counter> counters, SortedMap<String, Histogram> histograms, SortedMap<String, Meter> meters, SortedMap<String, Timer> timers, Map<String, Object> tags, boolean isFinal) { if (isFinal) { report(gauges, counters, histograms, meters, timers, ImmutableMap.<String, Object>builder().putAll(tags).put(FINAL_TAG_KEY, Boolean.TRUE).build()); } else { report(gauges, counters, histograms, meters, timers, tags); } }
@Override public void close() throws IOException { try { this.closer.close(); } catch (IOException exception) { LOGGER.warn("Failed to close output streams."); } finally { super.close(); } }