-
Notifications
You must be signed in to change notification settings - Fork 599
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
Remove all previously deprecated configuration options #1782
Changes from all commits
0d5dcd4
68ed111
99bd9b1
dc34209
b8a3753
09cba98
f0a0a0a
f6fb55d
3090435
89b1744
5228552
c29fbba
31f62cf
07bfb62
9f98858
c4af2a8
64fbf76
f5d6b6b
b012ff9
c60ca5a
b434d82
658762a
fe38b65
405c81e
1f74d80
cd7a931
5e50412
1c58bc1
37f9cfe
1bad6a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,6 @@ class HighSecuritySource < DottedHash | |
def initialize(local_settings) | ||
super({ | ||
:capture_params => false, | ||
:'resque.capture_params' => false, | ||
:'sidekiq.capture_params' => false, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These both are included in
|
||
:'attributes.include' => [], | ||
|
||
:'transaction_tracer.record_sql' => record_sql_setting(local_settings, :'transaction_tracer.record_sql'), | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
DependencyDetection.defer do | ||
# Why not just :grape? newrelic-grape used that name already, and while we're | ||
# not shipping yet, overloading the name interferes with the plugin. | ||
named :grape_instrumentation | ||
@name = :grape_instrumentation | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All of the instrumentation files that had Since the the config for grape is |
||
configure_with :grape | ||
|
||
depends_on do | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,7 +85,7 @@ def test_capture_params_true_allows_request_params_for_traces_and_errors | |
end | ||
|
||
def test_resque_capture_params_false_adds_exclude_rule_for_request_parameters | ||
with_config(:'resque.capture_params' => false) do | ||
with_config(:'attributes.include' => []) do | ||
filter = AttributeFilter.new(NewRelic::Agent.config) | ||
result = filter.apply('job.resque.args.*', AttributeFilter::DST_NONE) | ||
|
||
|
@@ -94,16 +94,24 @@ def test_resque_capture_params_false_adds_exclude_rule_for_request_parameters | |
end | ||
|
||
def test_resque_capture_params_true_allows_request_params_for_traces_and_errors | ||
with_config(:'resque.capture_params' => true) do | ||
with_config(:'attributes.include' => ['job.resque.args.*']) do | ||
filter = AttributeFilter.new(NewRelic::Agent.config) | ||
result = filter.apply('job.resque.args.*', AttributeFilter::DST_NONE) | ||
|
||
assert_destinations %w[transaction_tracer error_collector], result | ||
expected_destinations = %w[ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Expected destinations changed because the deprecated config was super old and didn't work with events |
||
transaction_events | ||
transaction_tracer | ||
error_collector | ||
span_events | ||
transaction_segments | ||
] | ||
|
||
assert_destinations expected_destinations, result | ||
end | ||
end | ||
|
||
def test_sidekiq_capture_params_false_adds_exclude_rule_for_request_parameters | ||
with_config(:'sidekiq.capture_params' => false) do | ||
with_config(:'attributes.include' => []) do | ||
filter = AttributeFilter.new(NewRelic::Agent.config) | ||
result = filter.apply('job.sidekiq.args.*', AttributeFilter::DST_NONE) | ||
|
||
|
@@ -112,11 +120,19 @@ def test_sidekiq_capture_params_false_adds_exclude_rule_for_request_parameters | |
end | ||
|
||
def test_sidekiq_capture_params_true_allows_request_params_for_traces_errors | ||
with_config(:'sidekiq.capture_params' => true) do | ||
with_config(:'attributes.include' => 'job.sidekiq.args.*') do | ||
filter = AttributeFilter.new(NewRelic::Agent.config) | ||
result = filter.apply('job.sidekiq.args.*', AttributeFilter::DST_NONE) | ||
|
||
assert_destinations %w[transaction_tracer error_collector], result | ||
expected_destinations = %w[ | ||
transaction_events | ||
transaction_tracer | ||
error_collector | ||
span_events | ||
transaction_segments | ||
] | ||
|
||
assert_destinations expected_destinations, result | ||
end | ||
end | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These attributes are no longer treated special and separate, they now work exactly like any other attribute given to the
attribute.include
config.