def _record_observations_in_db(db, results):
	"""
	Record a set of service observations in the database.
	"""
	if len(results) == 0:
		return
	try:
		for r in results:
			db.report_observation(r[0], r[1])
	except Exception as e:
		# TODO: we should probably retry here 
		logging.critical("DB Error: Failed to write results of length {0}".format(
					len(results)))
		logging.exception(e)