How do I use filter_parameters with params capturing?
The newrelic config file says this "# When true, the RoR filter_parameters mechanism is used so that sensitive parameters are not recorded".
The Rails API doesn't mention a filter_parameters mechanism. It has a filter_parameter_logging method. Is that what I'm supposed to use?
Can you please share a code example of how I would block certain HTTP parameters from being sent to New Relic for Errors and/or slow requests.
The Rails API doesn't mention a filter_parameters mechanism. It has a filter_parameter_logging method. Is that what I'm supposed to use?
Can you please share a code example of how I would block certain HTTP parameters from being sent to New Relic for Errors and/or slow requests.
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Hi Mike,
The call that we use is "filter_parameter_logging" - we piggyback on the same mechanism Rails uses to keep params from being logged. Did you still need an example?
- Jim -
Inappropriate?I don't think I need an example. Looks like there are examples on the rails API.
http://api.rubyonrails.com/classes/Ac...
I'd recommend you change your comments in the newrelic.yml file to say "filter_parameter_logging" instead of "filter_parameters".
Thanks!
I’m happy
-
Inappropriate?Hi Mike,
We'll update the comments in the newrelic.yml file. Thanks!
- Jim
Loading Profile...



EMPLOYEE