Skip to content

Commit 3f1a84b

Browse files
authored
debug(replay): Remove noisy log that is causing event buffer overflow as well (#14069)
Removes a log statement that is output when buffer is already full (which will keep overflowing the buffer). Also noticed a log statement in `stop()` that would trigger when we stop due to event buffer being full, which would compoound the issue. This last fix should be pulled into the SDK.
1 parent cee2c42 commit 3f1a84b

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

packages/replay-internal/src/eventBuffer/EventBufferCompressionWorker.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,6 @@ export class EventBufferCompressionWorker implements EventBuffer {
6767
this._totalSize += data.length;
6868

6969
if (this._totalSize > REPLAY_MAX_EVENT_BUFFER_SIZE) {
70-
DEBUG_BUILD &&
71-
logger.info(
72-
`Cannot add new event with raw size of ${data.length} to existing buffer of size ${
73-
this._totalSize - data.length
74-
}`,
75-
);
7670
return Promise.reject(new EventBufferSizeExceededError());
7771
}
7872

packages/replay-internal/src/replay.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,9 @@ export class ReplayContainer implements ReplayContainerInterface {
452452
this._isEnabled = false;
453453

454454
try {
455-
DEBUG_BUILD && logger.info(`Stopping Replay${reason ? ` triggered by ${reason}` : ''}`);
455+
DEBUG_BUILD &&
456+
reason !== 'addEventSizeExceeded' &&
457+
logger.info(`Stopping Replay${reason ? ` triggered by ${reason}` : ''}`);
456458

457459
resetReplayIdOnDynamicSamplingContext();
458460

0 commit comments

Comments
 (0)