Class: ElasticAPM::Spies::JSONSpy Private
- Inherits:
-
Object
- Object
- ElasticAPM::Spies::JSONSpy
- Defined in:
- lib/elastic_apm/spies/json.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #install ⇒ Object private
Instance Method Details
#install ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 30 31 32 33 34 |
# File 'lib/elastic_apm/spies/json.rb', line 27 def install ::JSON.class_eval do include SpanHelpers span_class_method :parse, 'JSON#parse', 'json.parse' span_class_method :parse!, 'JSON#parse!', 'json.parse' span_class_method :generate, 'JSON#generate', 'json.generate' end end |