async function prepareData(value, sanitizeCallback) {
  if (typeof value === 'function') {
    value = await value()
  }
  return sanitizeCallback(value)
}
Resolves an attribute or metric value and sanitize it.

@param {mixed} value
@param {Function} sanitizeCallback