File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ class Logger extends Utility implements LoggerInterface {
188
188
* Max size of the buffer. Additions to the buffer beyond this size will
189
189
* cause older logs to be evicted from the buffer
190
190
*/
191
- #maxBufferBytesSize = 1024 ;
191
+ #maxBufferBytesSize = 20480 ;
192
192
193
193
/**
194
194
* Contains buffered logs, grouped by _X_AMZN_TRACE_ID, each group with a max size of `maxBufferBytesSize`
@@ -1284,7 +1284,7 @@ class Logger extends Utility implements LoggerInterface {
1284
1284
* Flushes all items of the respective _X_AMZN_TRACE_ID within
1285
1285
* the buffer.
1286
1286
*/
1287
- flushBuffer ( ) : void {
1287
+ public flushBuffer ( ) : void {
1288
1288
const traceId = this . envVarsService . getXrayTraceId ( ) ;
1289
1289
if ( traceId === undefined ) {
1290
1290
return ;
Original file line number Diff line number Diff line change @@ -186,7 +186,8 @@ type LogBufferOption = {
186
186
enabled ?: boolean ;
187
187
188
188
/**
189
- * Maximum size in bytes of each buffer.
189
+ * Maximum size of the buffer in bytes
190
+ * @default `20480`
190
191
*/
191
192
maxBytes ?: number ;
192
193
/**
You can’t perform that action at this time.
0 commit comments