code: public void tryAddLogToBatch(TelemetryData log)
    {
      try
      {
        addLogToBatch(log);
      }
      catch (IOException ex)
      {
        logger.debug("Exception encountered while sending metrics to telemetry endpoint.", ex);
      }
    }
docs: Attempt to add log to batch, and suppress exceptions thrown in case of
  failure
  
  @param log entry to add