Sha256: ef9b584e7ee3ca13f486be680a675056a338573fd9b2b67e933c56c482bed44a
Contents?: true
Size: 404 Bytes
Versions: 1
Compression:
Stored size: 404 Bytes
Contents
require 'multi_json' module Rollbar module Truncation module Mixin def dump(payload) Rollbar::JSON.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rollbar-2.0.0 | lib/rollbar/truncation/mixin.rb |