Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ public class LogbookGcpAutoConfiguration {
@Bean
public LogbookLoggingCloudProperties logbookCloudConfiguration() {
LogbookLoggingCloudProperties c = new LogbookLoggingCloudProperties();
// subtract a few kb for headers and other wrapping
c.setMaxBodySize(131072 - 2 * 1024);
c.setMaxSize(131072);
// hard limit as of April 2026: 256 KiB - where KiB is 1024 bytes
// Body: set it to 224 KiB to be on the safe side,
// and to allow for a lot of overhead in the logging framework, MDC, HTTP headers, bytes vs chars, etc.
c.setMaxBodySize(229376);
c.setMaxSize(262144 - 2 * 1024); // inaccurate + currently not enforced
return c;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ public class RequestResponseGcpGrpcEcosystemAutoConfiguration {
@Bean
public GrpcLoggingCloudProperties grpcLoggingCloudProperties() {
GrpcLoggingCloudProperties c = new GrpcLoggingCloudProperties();
// subtract a few kb for headers and other wrapping
c.setMaxBodySize(131072 - 2 * 1024);
c.setMaxSize(131072);
// hard limit as of April 2026: 256 KiB - where KiB is 1024 bytes
// Body: set it to 224 KiB to be on the safe side,
// and to allow for a lot of overhead in the logging framework, MDC, HTTP headers, bytes vs chars, etc.
c.setMaxBodySize(229376);
c.setMaxSize(262144 - 2 * 1024); // inaccurate + currently not enforced
return c;
}
}
Loading