code: private static boolean sample(Long rootId) {
          if (Double.compare(sampleRate, 1.0d) >= 0)
              return true;
          int mod = (int) (Math.abs(rootId) % PRECISION);
          int threshold = (int) (sampleRate * PRECISION);
          return mod < threshold;
      }
docs: the tuple debug logs only output `rate`% the tuples with same rootId, should be logged or not logged together.