Skip to content

Commit

Permalink
Merge pull request #521 from rollbar/increase-max-payload-size
Browse files Browse the repository at this point in the history
Increase max payload from 128kb to 512kb
  • Loading branch information
jondeandres authored Sep 9, 2016
2 parents 6aa168b + 7e9173b commit 38479bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/rollbar/truncation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Rollbar
module Truncation
extend ::Rollbar::Truncation::Mixin

MAX_PAYLOAD_SIZE = 128 * 1024 # 128kb
MAX_PAYLOAD_SIZE = 512 * 1024 # 512kb
STRATEGIES = [RawStrategy,
FramesStrategy,
StringsStrategy,
Expand Down
4 changes: 2 additions & 2 deletions spec/rollbar/truncation/strings_strategy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

context 'when first threshold is not enough' do
let(:payload) do
129.times.to_enum.reduce({}) do |hash, i|
512.times.to_enum.reduce({}) do |hash, i|
hash[i.to_s] = 'a' * 1024
hash
end
Expand All @@ -58,7 +58,7 @@

context 'when second threshold is still not enough' do
let(:payload) do
257.times.to_enum.reduce({}) do |hash, i|
1024.times.to_enum.reduce({}) do |hash, i|
hash[i.to_s] = 'a' * 1024
hash
end
Expand Down

0 comments on commit 38479bf

Please sign in to comment.