class TracezDataAggregator {

  Map<String, Map<LatencyBoundary, Integer>> getSpanLatencyCounts() {
    Map<String, TracezSpanBuckets> completedSpanCache = spanProcessor.getCompletedSpanCache();
    Map<String, Map<LatencyBoundary, Integer>> numSpansPerName = new HashMap<>();
    for (Map.Entry<String, TracezSpanBuckets> cacheEntry : completedSpanCache.entrySet()) {
      numSpansPerName.put(
          cacheEntry.getKey(), cacheEntry.getValue().getLatencyBoundaryToCountMap());
    }
    return numSpansPerName;
  }

    TracezDataAggregator(TracezSpanProcessor spanProcessor);

}