Add tracing to #to_hash for Comment/CommentThread.
This commit is contained in:
Родитель
1f4b77a9bd
Коммит
925dd72a9d
|
@ -1,3 +1,4 @@
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче