Sha256: bb944e5647f16e496a3623c449bdf9a0a8fc0ab3e057e353bf73c46a4d69160b
Contents?: true
Size: 400 Bytes
Versions: 16
Compression:
Stored size: 400 Bytes
Contents
require 'multi_json' module Rollbar module Truncation module Mixin def dump(payload) MultiJson.dump(payload) end def truncate?(result) result.bytesize > MAX_PAYLOAD_SIZE end def select_frames(frames, range = 150) return frames unless frames.count > range * 2 frames[0, range] + frames[-range, range] end end end end
Version data entries
16 entries across 16 versions & 1 rubygems