-
Notifications
You must be signed in to change notification settings - Fork 601
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
Subscribe to additional Action controller topics #1744
Subscribe to additional Action controller topics #1744
Conversation
action controller tpoics
into separate file
notification subscriber tests
doing the exact same thing
@@ -163,42 +159,6 @@ def test_pop_segment_returns_false | |||
end | |||
end | |||
|
|||
def test_start_logs_notification_error |
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.
Moved these tests into the notifications_subscriber.rb since these are testing what is now shared code
lib/new_relic/agent/instrumentation/action_controller_other_subscriber.rb
Outdated
Show resolved
Hide resolved
lib/new_relic/agent/instrumentation/action_controller_other_subscriber.rb
Outdated
Show resolved
Hide resolved
|
||
def finish_segment(name, id, payload) | ||
raise NotImplementedError | ||
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.
This is a great cleanup, thank you.
lib/new_relic/agent/instrumentation/rails_notifications/action_controller.rb
Outdated
Show resolved
Hide resolved
…512_subscribe_actionview
Refactor ActionViewSubscriber methods `start` and `finish` (which now inherit from NotificationsSubscriber to `start_segment` and `finish_segment`.
lib/new_relic/agent/instrumentation/notifications_subscriber.rb
Outdated
Show resolved
Hide resolved
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.
Thank you, Tanna! Great work!
Subscribe to additional Action View topic
…b.com:newrelic/newrelic-ruby-agent into action_controller_subscriber_additional_topic
generic notification subscriber class
Use NewRelic::UNKNOWN const
SimpleCov Report
|
@@ -116,8 +114,6 @@ def test_super_operation_recorded_as_attribute_on_traces | |||
trace = last_transaction_trace | |||
tt_node = find_node_with_name(trace, "#{METRIC_PREFIX}#{DEFAULT_STORE}/read") | |||
|
|||
puts txn.segments.last.inspect |
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.
Thank you for cleaning up these puts statements! Sorry I forgot to remove them!
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.
Great work, Tanna!
start_processing
because it was just creating duplicates of process_actionpassing on all versions with latest commit
closes #1510
closes #1512