Skip to content

Commit 0efe715

Browse files
committed
ref: Change log buffer max length from 100 -> 25
1 parent 56635a5 commit 0efe715

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/src/log.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ function valueToAttribute(key: string, value: unknown): LogAttribute {
6464
}
6565
}
6666

67+
const LOG_BUFFER_MAX_LENGTH = 25;
68+
6769
let GLOBAL_LOG_BUFFER: Log[] = [];
6870

6971
let isFlushingLogs = false;
@@ -75,7 +77,7 @@ function addToLogBuffer(client: Client, log: Log, scope: Scope): void {
7577
void client.sendEnvelope(envelope);
7678
}
7779

78-
if (GLOBAL_LOG_BUFFER.length >= 100) {
80+
if (GLOBAL_LOG_BUFFER.length >= LOG_BUFFER_MAX_LENGTH) {
7981
sendLogs(GLOBAL_LOG_BUFFER);
8082
GLOBAL_LOG_BUFFER = [];
8183
} else {

0 commit comments

Comments
 (0)