function txHandler(transaction) {
      transactions.push(transaction)
      if (expectedCount === transactions.length) {
        resolve(transactions)
      }
    }
Registers all instrumentation for Next.js

@param {Agent} agent