@Test public void prefixShouldPrepend() { DatadogReporter reporter = new DatadogReporter( registry, client, "foo", Option.empty(), Option.empty(), MetricFilter.ALL, TimeUnit.SECONDS, TimeUnit.SECONDS); assertEquals("foo.bar", reporter.prefix("bar")); }
protected String prefix(String... components) { return MetricRegistry.name(prefix, components); }
DatadogReporter extends ScheduledReporter { protected String prefix(String... components) { return MetricRegistry.name(prefix, components); } }
DatadogReporter extends ScheduledReporter { protected String prefix(String... components) { return MetricRegistry.name(prefix, components); } protected  DatadogReporter(
      MetricRegistry registry,
      DatadogHttpClient client,
      String prefix,
      Option<String> host,
      Option<List<String>> tags,
      MetricFilter filter,
      TimeUnit rateUnit,
      TimeUnit durationUnit); }
DatadogReporter extends ScheduledReporter { protected String prefix(String... components) { return MetricRegistry.name(prefix, components); } protected  DatadogReporter(
      MetricRegistry registry,
      DatadogHttpClient client,
      String prefix,
      Option<String> host,
      Option<List<String>> tags,
      MetricFilter filter,
      TimeUnit rateUnit,
      TimeUnit durationUnit); @Override void report(
      SortedMap<String, Gauge> gauges,
      SortedMap<String, Counter> counters,
      SortedMap<String, Histogram> histograms,
      SortedMap<String, Meter> meters,
      SortedMap<String, Timer> timers); @Override void stop(); }
DatadogReporter extends ScheduledReporter { protected String prefix(String... components) { return MetricRegistry.name(prefix, components); } protected  DatadogReporter(
      MetricRegistry registry,
      DatadogHttpClient client,
      String prefix,
      Option<String> host,
      Option<List<String>> tags,
      MetricFilter filter,
      TimeUnit rateUnit,
      TimeUnit durationUnit); @Override void report(
      SortedMap<String, Gauge> gauges,
      SortedMap<String, Counter> counters,
      SortedMap<String, Histogram> histograms,
      SortedMap<String, Meter> meters,
      SortedMap<String, Timer> timers); @Override void stop();  }