function addRequiredCATAttributes(transaction, attributes, configuration) {
  attributes['nr.guid'] = transaction.id
  attributes['nr.tripId'] = transaction.tripId || transaction.id
  attributes['nr.pathHash'] = hashes.calculatePathHash(
    configuration.applications()[0],
    transaction.getFullName(),
    transaction.referringPathHash
  )
}
Helper method for modifying attributes by reference if transaction has CAT metrics

@param {object} transaction The current transaction
@param {object} attributes The attributes object to modify (by reference)
@param {object} configuration Agent configuration options