function maybeAddQueueAttributes(transaction, attributes) {
  const metric = transaction.metrics.getMetric(NAMES.QUEUETIME)

  if (metric) {
    attributes.queueDuration = metric.total
  }
}
Helper method for modifying attributes by reference if transaction has queue metrics

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