Class: ScoutApm::Serializers::DirectiveSerializer
- Inherits:
-
Object
- Object
- ScoutApm::Serializers::DirectiveSerializer
- Defined in:
- lib/scout_apm/serializers/directive_serializer.rb
Class Method Summary collapse
Class Method Details
.deserialize(data) ⇒ Object
14 15 16 |
# File 'lib/scout_apm/serializers/directive_serializer.rb', line 14 def self.deserialize(data) Marshal.load(data) end |
.serialize(data) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/scout_apm/serializers/directive_serializer.rb', line 6 def self.serialize(data) Marshal.dump(data) rescue ScoutApm::Agent.instance.logger.info("Failed Marshalling Directive") ScoutApm::Agent.instance.logger.info(ScoutApm::Utils::MarshalLogging.new(data).dive) rescue nil raise end |