Module: NewRelic::Agent::NewRelicService::Encoders::Base64CompressedJSON

Defined in:
lib/new_relic/agent/new_relic_service.rb

Class Method Summary collapse

Class Method Details

.encode(data) ⇒ Object



385
386
387
# File 'lib/new_relic/agent/new_relic_service.rb', line 385

def self.encode(data)
  Base64.encode64(Compressed.encode(JSON.dump(data)))
end