function handleError(shim, tx, error) {
  logger.trace(error, 'Captured outbound error on behalf of the user.')
  shim.agent.errors.add(tx, error)
}
Adds the error to the active transaction

@param {Shim} shim instance of shim
@param {Transaction} tx active transaction
@param {Error} error error from undici request