Skip to content

feat(scope): add last event ID getters - #1992

Open
jpnurmi wants to merge 2 commits into
masterfrom
jpnurmi/feat/last-event-id
Open

feat(scope): add last event ID getters#1992
jpnurmi wants to merge 2 commits into
masterfrom
jpnurmi/feat/last-event-id

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Track the last captured event ID, and expose global and scope-specific getters.

Note

This tracks the last ID of ANY captured event during the current run, not crashes from previous runs. This is meant to complement #1985, which provides previously crashed runs.

Close: #1447

@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against efc358b

@jpnurmi
jpnurmi force-pushed the jpnurmi/feat/on-crashed-last-run branch from 12f1eff to bf26eaf Compare August 14, 2026 08:34
@jpnurmi
jpnurmi force-pushed the jpnurmi/feat/last-event-id branch from 6f8ebfe to f6d9082 Compare August 14, 2026 08:34
Comment thread src/sentry_core.c
@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.49123% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.39%. Comparing base (231cb89) to head (efc358b).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1992      +/-   ##
==========================================
+ Coverage   74.33%   74.39%   +0.05%     
==========================================
  Files         104      104              
  Lines       25637    25670      +33     
  Branches     4627     4635       +8     
==========================================
+ Hits        19058    19097      +39     
+ Misses       5274     5259      -15     
- Partials     1305     1314       +9     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Track the last captured envelope ID on the scope used for capture and expose
global and scope-specific getters.
@jpnurmi
jpnurmi changed the base branch from jpnurmi/feat/on-crashed-last-run to master August 14, 2026 09:45
@jpnurmi
jpnurmi force-pushed the jpnurmi/feat/last-event-id branch from d6dabff to efc358b Compare August 14, 2026 09:45

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit efc358b. Configure here.

Comment thread src/sentry_scope.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow fetching event_id from last crash

1 participant