Skip to content

Commit 5636eaa

Browse files
committed
feat(java): raise max payload size to 1MB
1 parent 00d5b2c commit 5636eaa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rollbar-java/src/integTest/java/com/rollbar/notifier/RollbarITest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ public void ifPayloadIsTooLargeItShouldBeTruncated() {
352352
assertThat(frames, hasSize(20));
353353

354354
assertThat(PayloadTruncator.sizeInBytes(payloadJsonString),
355-
lessThanOrEqualTo(512 * 1024));
355+
lessThanOrEqualTo(1024 * 1024));
356356
}
357357

358358
protected Sender buildSender(String url, String accessToken, Proxy proxy) {

rollbar-java/src/main/java/com/rollbar/notifier/RollbarBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
public abstract class RollbarBase<RESULT, C extends CommonConfig> {
3737

3838
private static final Logger LOGGER = LoggerFactory.getLogger(RollbarBase.class);
39-
private static final int MAX_PAYLOAD_SIZE_BYTES = 512 * 1024; // 512kb
39+
private static final int MAX_PAYLOAD_SIZE_BYTES = 1024 * 1024; // 1mb
4040

4141
protected BodyFactory bodyFactory;
4242
protected PayloadTruncator payloadTruncator;

0 commit comments

Comments
 (0)