Skip to content

Conversation

@jpnurmi
Copy link
Collaborator

@jpnurmi jpnurmi commented Jan 22, 2026

This PR is a preparation step for offline caching. It passes a --report-id=<uuid> command-line argument to the crashpad handler to make crashpad use predefined report IDs instead of generating random IDs.

This eliminates a discrepancy between sentry-native and crashpad by allowing both operate on the same event/report IDs. Since #1319, sentry-native pre-generates event IDs (stored in __sentry-event) on startup, and this change makes crashpad use the same ID as report ID. This way, sentry-native's crashpad backend can maintain sentry-specific event-related state without having to communicate everything to crashpad, which makes it easier to convert completed crashpad reports back to sentry envelopes for backend-agnostic offline caching.

See also:

@jpnurmi jpnurmi force-pushed the jpnurmi/feat/crashpad-report-id branch 4 times, most recently from 96b9632 to 0dd654c Compare January 22, 2026 16:00
jpnurmi and others added 3 commits January 30, 2026 10:35
Add wait_for_file helper to handle the race condition where crashpad
moves the minidump file asynchronously after the HTTP upload completes,
so the file is not guaranteed to be present immediately after waiting
for the HTTP request.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@jpnurmi jpnurmi force-pushed the jpnurmi/feat/crashpad-report-id branch from 7007c87 to 89d9958 Compare January 30, 2026 09:36
@jpnurmi jpnurmi marked this pull request as ready for review January 30, 2026 11:24
@jpnurmi jpnurmi requested a review from JoshuaMoelans January 30, 2026 11:24
@jpnurmi
Copy link
Collaborator Author

jpnurmi commented Jan 30, 2026

Side-note: to be merged after the release

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.

2 participants