module Rollbar::Truncation
Constants
- MAX_PAYLOAD_SIZE
- STRATEGIES
Public Class Methods
truncate(payload, attempts = [])
click to toggle source
# File lib/rollbar/truncation.rb, line 24 def self.truncate(payload, attempts = []) result = nil STRATEGIES.each do |strategy| result = strategy.call(payload) attempts << result.bytesize break unless truncate?(result) end result end