Skip to content

Commit

Permalink
feat(scope): Only set lastEventId for error events
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiborza committed May 14, 2024
1 parent 9078e45 commit f85d369
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core/src/baseclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,8 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {

this.emit('preprocessEvent', event, hint);

const eventId = event.event_id || hint.event_id;
if (eventId) {
isolationScope.setLastEventId(eventId);
if (!event.type) {
isolationScope.setLastEventId(event.event_id || hint.event_id);
}

return prepareEvent(options, event, hint, currentScope, this, isolationScope).then(evt => {
Expand Down

0 comments on commit f85d369

Please sign in to comment.