Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need ability to ignore properties of object parameters #92

Closed
seth-admittedly opened this issue Dec 11, 2013 · 7 comments
Closed

Need ability to ignore properties of object parameters #92

seth-admittedly opened this issue Dec 11, 2013 · 7 comments

Comments

@seth-admittedly
Copy link

It's pretty common to have object parameters in a route, e.g., a user. Currently all the properties of that object are captured if parameter capturing is enabled. There needs to be a way to ignore certain properties, e.g., user.password.

@othiym23
Copy link
Contributor

This already exists! Look at ignored_params for newrelic.js, or NEW_RELIC_IGNORED_PARAMS if you're configuring via environment variables.

Thanks for using the agent!

@seth-admittedly
Copy link
Author

What's the syntax for ignoring an object's parameter? I can ignore the
password parameter with ["password"] but the user object still gets
captured with the password property. I tried ["password","user.password"]
but with no success.

On Wed, Dec 11, 2013 at 3:24 PM, Forrest L Norvell <[email protected]

wrote:

Closed #92 #92.


Reply to this email directly or view it on GitHubhttps://github.com//issues/92
.

Lead Developer@admittedly

@seth-admittedly
Copy link
Author

screen shot 2013-12-11 at 4 25 37 pm

@othiym23
Copy link
Contributor

I'm with you now. Sorry for missing that detail earlier!

Firstly, if you want to ensure that you're not capturing sensitive data with slow transaction traces, for now I'd suggest that you set capture_params to false (which is its default state).

This is a real issue, but also sort of an edge case. We have some ideas as to how to fix this, but since parameter filtering is something that is potentially done many times per request, it needs to be done in the simplest way possible to avoid causing significant performance regressions. It might be a little while before we can get to this, hence the recommendation in the previous paragraph. Thanks for the report, though, and we'll see what we can do.

@othiym23 othiym23 reopened this Dec 11, 2013
@seth-admittedly
Copy link
Author

Yeah, definitely have parameter capture off in production. Would be great
to have this feature though so we could enable it.

On Wed, Dec 11, 2013 at 4:42 PM, Forrest L Norvell <[email protected]

wrote:

Reopened #92 #92.


Reply to this email directly or view it on GitHubhttps://github.com//issues/92
.

Lead Developer@admittedly

@othiym23
Copy link
Contributor

This is something that every New Relic agent handles slightly differently, and right now it appears that we'd be pioneering filtering nested properties, if we do decide to implement it.

The approach I have in mind involves cloning the parameters object, specifying parameters as strings using dot notation to denote the object graph (user.password), splitting on '.', and then recursively descending the parameters to find (and delete) matches. To work properly, filtering should be deferred until the trace is selected for delivery to New Relic (because otherwise the per-request performance hit is... pretty significant).

This has some knock-on architectural considerations that mean that it's a nontrivial project, and as such probably needs to be put on our project roadmap and not done as a simple bug fix. I'll add it to our roadmapping tool, and then it'll be up to our product manager to figure out its priority. You (and anyone else who stumbles across this issue) can help that process along by opening a support ticket and describing why this is a problem for you as concretely as possible.

@txase
Copy link

txase commented Jun 26, 2014

Hi @seth-admittedly,

We're doing some github issue cleanup. We're continuing to track your issue internally as a feature request. At this time, there is nothing more actionable for us to do with this issue, so we are closing it.

Thank you for your understanding as we tidy up our issues!

@txase txase closed this as completed Jun 26, 2014
cmcadams-newrelic pushed a commit to cmcadams-newrelic/node-newrelic that referenced this issue Jan 29, 2024
…graphql-koa-dataloader/app/protobufjs-7.2.4

chore(deps): bump protobufjs from 7.2.3 to 7.2.4 in /graphql-koa-dataloader/app
jsumners-nr pushed a commit to jsumners-nr/node-newrelic that referenced this issue Apr 11, 2024
jsumners-nr pushed a commit to jsumners-nr/node-newrelic that referenced this issue Apr 16, 2024
bizob2828 added a commit to bizob2828/node-newrelic that referenced this issue Apr 19, 2024
bizob2828 added a commit to bizob2828/node-newrelic that referenced this issue Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants