Method: OneApm::Collector::CollectorService::Helper#valid_to_marshal?

Defined in:
lib/one_apm/collector/collector/helper.rb

#valid_to_marshal?(data) ⇒ Boolean

Returns:

  • (Boolean)


112
113
114
115
116
117
118
# File 'lib/one_apm/collector/collector/helper.rb', line 112

def valid_to_marshal?(data)
  @marshaller.dump(data)
  true
rescue StandardError, SystemStackError => e
  OneApm::Manager.logger.warn("Unable to marshal environment report on connect.", e)
  false
end