newrelic-ruby-agent
newrelic-ruby-agent copied to clipboard
Include HTTP headers with all Transactions
Is your feature request related to a problem? Please describe.
Yes? The Ruby agent lacks features that the JS agent has, so we're missing data.
Feature Description
The Node JS agent supports sending all HTTP headers via the allow_all_headers flag. This results in attributes like request.headers.accept showing up as attributes on all Transactions. See New Relic Data Dictionary for more on those attributes.
Describe Alternatives
We can add each header as a custom attribute. This works fine, but it's a fair bit of extra code we have to maintain.
Priority
Really Want
T-Shirt size
Hello @jamesarosen Thanks for letting us know about this feature you'd like to see in the ruby agent. I'll let our PM know so they can take a look. Thank you!
Hi @jamesarosen thanks for the suggestion. We try and maintain feature parity with our agents and several agents have implemented support for capturing HTTP headers. We will add this to our backlog.
Let's size this story and then assess next steps.
https://issues.newrelic.com/browse/NEWRELIC-3436
Link to ticket where we worked on logging HTTP headers: https://github.com/newrelic/newrelic-ruby-agent/pull/1839
Hi @jamesarosen, thanks again for suggesting this feature! The PR to introduce a new allow_all_headers config option is now in our dev branch and is slated to go out with in our next agent version.
Nice work, team 👏