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 @@ -67,12 +67,6 @@ export class EventBufferCompressionWorker implements EventBuffer {
this._totalSize += data.length;

if (this._totalSize > REPLAY_MAX_EVENT_BUFFER_SIZE) {
DEBUG_BUILD &&
logger.info(
`Cannot add new event with raw size of ${data.length} to existing buffer of size ${
this._totalSize - data.length
}`,
);
return Promise.reject(new EventBufferSizeExceededError());
}

Expand Down
4 changes: 3 additions & 1 deletion packages/replay-internal/src/replay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,9 @@ export class ReplayContainer implements ReplayContainerInterface {
this._isEnabled = false;

try {
DEBUG_BUILD && logger.info(`Stopping Replay${reason ? ` triggered by ${reason}` : ''}`);
DEBUG_BUILD &&
reason !== 'addEventSizeExceeded' &&
logger.info(`Stopping Replay${reason ? ` triggered by ${reason}` : ''}`);

resetReplayIdOnDynamicSamplingContext();

Expand Down
Loading