Skip to content

Commit

Permalink
the class of a class is class, use self.name
Browse files Browse the repository at this point in the history
  • Loading branch information
bpoweski authored and jaggederest committed May 12, 2011
1 parent ff711f6 commit 26a453b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rpm_contrib/instrumentation/crack.rb
Expand Up @@ -3,7 +3,7 @@
::Crack::JSON.class_eval do
class << self
include NewRelic::Agent::MethodTracer
add_method_tracer :parse, 'Parser/#{self.class.name}/parse'
add_method_tracer :parse, 'Parser/#{self.name}/parse'
end
end
end
Expand All @@ -12,7 +12,7 @@ class << self
::Crack::XML.class_eval do
class << self
include NewRelic::Agent::MethodTracer
add_method_tracer :parse, 'Parser/#{self.class.name}/parse'
add_method_tracer :parse, 'Parser/#{self.name}/parse'
end
end
end
Expand Down

0 comments on commit 26a453b

Please sign in to comment.