function readProcBootId({ data, agent, callback }) {
  if (!data) {
    recordBootIdError(agent)
    return callback(null, null)
  }

  data = data.trim()
  const asciiData = Buffer.from(data, 'ascii').toString()

  if (data !== asciiData) {
    recordBootIdError(agent)
    return callback(null, null)
  }

  if (data.length !== 36) {
    recordBootIdError(agent)
    if (data.length > 128) {
      data = data.substring(0, 128)
    }
  }

  return callback(null, data)
}
Utility function to parse a Docker boot id from a cgroup proc file.

@param {Buffer} data The information from the proc file.
@param {object} agent Newrelic agent instance.
@param {Function} callback Typical error first callback. Second parameter
is the boot id as a string.

@returns {*}