-
Notifications
You must be signed in to change notification settings - Fork 600
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
Add filtering capabilities for Sidekiq job argument collection #2150
Comments
The capabilities requested will be available in the next agent release. |
The changes delivered by #2177 are now generally available in v9.5.0 of the Ruby agent available for download from RubyGems.org. |
@fallwith thank you for this. Quick question: with this new feature in place, does I would like to exclude sending sensitive parameters (e.g. |
Hi @lcmen. The As of v9.5.0 regex support for filtering is limited to the Ruby specific Sidekiq and Stripe instrumentation. We wanted to be very careful to not alter existing Based on the feedback and usage of the new regex filtering for Sidekiq and Stripe, we may very well bring regex filtering to other parts of the agent. The regex support for those two instrumentations works in conjunction with the If you'd like to see that or anything else done with the agent, we welcome feature requests (link: create a feature request) and PRs here in GitHub. I appreciate your reaching out, thanks! |
@fallwith thank you for such detailed explenation. I really appreciate that 🙇 . |
The agent's Sidekiq instrumentation has the ability to capture Sidekiq job arguments, which become attributes on transaction traces and traced errors. By default, this configuration option is turned off in case job arguments contain sensitive information (docs). This feature can be turned on by adding the string
job.sidekiq.args.*
to theattributes.include
array insidenewrelic.yml
.The current implementation offers an all-or-nothing approach—either all job arguments are captured or none are.
job.sidekiq.args.*
is the only Sidekiq-related value thatattributes.include
respects, and any added toattributes.exclude
are ignored.newrelic-ruby-agent/lib/new_relic/agent/instrumentation/sidekiq/server.rb
Lines 20 to 25 in 7f38c1d
We should explore adding more advanced filtering capabilities to give customers greater control over which Sidekiq job arguments should or shouldn't be collected.
The text was updated successfully, but these errors were encountered: