title: In New Relic Agent for Node.js, how to show the trace for every transaction?
body: <p>In my expressjs app, each time there is a request, a transaction will be recorded on New Relic. However, as each transaction comes from a different user, I want to add a custom attribute (userId) to the transaction so that I know from which user the request comes from. </p>
  
  <p>The only way to show that custom attribute is from the transaction trace > transaction details. </p>
  
  <p>However, it appears that ONLY long transactions have a trace. So, I can't track the userId for each transaction. </p>
  
  <p>What's wrong am I doing? Is it a good practice to add custom attribute to each transaction?</p>
  
  <p>Here is the important lines in my node.js code:</p>
  
  <pre><code>// beginning of the file
  const newrelic = require('newrelic');
  
  ...
  
  app.get('/blah', function(req, res, next) {
     newrelic.addCustomAttribute('test', 28);
     ...
  });
  </code></pre>