function wrapThen(then, name) {
    return _wrapThen(then, name, true)
  }
Creates a wrapper for `Promise#then` that extends the transaction context.

@param {Function} then function reference to instrument
@param {string} name `then`
@returns {Function} A wrapped version of `Promise#then`.