Skip to content

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

Merged
jpnurmi merged 4 commits into
masterfrom
jpnurmi/feat/last-event-id
Aug 14, 2026
Merged

feat(scope): add last event ID getters#1992
jpnurmi merged 4 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, including crashes processed from previous runs. This is meant to complement #1985, which provides a callback for 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 5050c01

@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.07843% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.32%. Comparing base (0626940) to head (5050c01).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1992   +/-   ##
=======================================
  Coverage   74.32%   74.32%           
=======================================
  Files         104      104           
  Lines       25701    25738   +37     
  Branches     4640     4648    +8     
=======================================
+ Hits        19101    19131   +30     
- Misses       5293     5299    +6     
- Partials     1307     1308    +1     
🚀 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
Comment thread src/sentry_scope.c Outdated
@jpnurmi
jpnurmi requested a review from JoshuaMoelans August 14, 2026 12:57

@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 a405deb. Configure here.

Comment thread src/sentry_scope.c Outdated
@jpnurmi
jpnurmi merged commit 38fb099 into master Aug 14, 2026
66 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/feat/last-event-id branch August 14, 2026 16:18
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

2 participants