Commit 925dd72a by Toby Lawrence

Add tracing to #to_hash for Comment/CommentThread.

parent 1f4b77a9
require 'new_relic/agent/method_tracer'
require_relative 'content'
require_relative 'constants'
......@@ -164,4 +165,7 @@ class Comment < Content
self.sk = (self.parent_ids.dup << self.id).join("-")
end
end
include ::NewRelic::Agent::MethodTracer
add_method_tracer :to_hash
end
......@@ -133,7 +133,6 @@ class CommentThread < Content
"group_id" => group_id,
"pinned" => pinned?,
"comments_count" => comment_count)
end
def comment_thread_id
......@@ -162,4 +161,7 @@ class CommentThread < Content
def destroy_subscriptions
subscriptions.delete_all
end
include ::NewRelic::Agent::MethodTracer
add_method_tracer :to_hash
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment