module Rollbar::Truncation::Mixin
Public Instance Methods
Source
# File lib/rollbar/truncation/mixin.rb, line 4 def dump(payload) Rollbar::JSON.dump(payload) end
Source
# File lib/rollbar/truncation/mixin.rb, line 12 def select_frames(frames, range = 50) return frames unless frames.count > range * 2 frames[0, range] + frames[-range, range] end
Source
# File lib/rollbar/truncation/mixin.rb, line 8 def truncate?(result) result.bytesize > MAX_PAYLOAD_SIZE end