docs: public void addLogToBatch(TelemetryData log) throws IOException
    {
      if (isClosed)
      {
        throw new IOException("Telemetry connector is closed");
      }
      if (!isTelemetryEnabled())
      {
        return; // if disable, do nothing
      }
  
      synchronized (locker)
      {
        this.logBatch.add(log);
      }
  
      if (this.logBatch.size() >= this.forceFlushSize)
      {
        this.sendBatch();
      }
    }