newrelic-ruby-agent icon indicating copy to clipboard operation
newrelic-ruby-agent copied to clipboard

Include HTTP headers with all Transactions

Open jamesarosen opened this issue 3 years ago • 4 comments

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

jamesarosen avatar Mar 16 '22 23:03 jamesarosen

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!

tannalynn avatar Mar 17 '22 19:03 tannalynn

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.

elucus avatar Mar 24 '22 18:03 elucus

Let's size this story and then assess next steps.

angelatan2 avatar Apr 18 '22 17:04 angelatan2

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

kaylareopelle avatar Jun 08 '23 22:06 kaylareopelle

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.

fallwith avatar Aug 14 '23 16:08 fallwith

Nice work, team 👏

jamesarosen avatar Aug 15 '23 04:08 jamesarosen

Version 9.4.0 of the agent is now available from RubyGems.org.

CHANGELOG

fallwith avatar Aug 15 '23 23:08 fallwith