Skip to content

feat(cache): write .dmp separately alongside .envelope#1607

Merged
jpnurmi merged 2 commits into
masterfrom
jpnurmi/feat/cache-dmp
Mar 30, 2026
Merged

feat(cache): write .dmp separately alongside .envelope#1607
jpnurmi merged 2 commits into
masterfrom
jpnurmi/feat/cache-dmp

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Mar 30, 2026

Copy link
Copy Markdown
Collaborator

Store minidump attachments as separate .dmp files in the offline cache for direct debugger access without the need to manually extract minidumps from envelopes.

<db>/cache/
├── aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa.envelope
├── aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa.dmp
├── bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb.envelope
└── bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb.dmp

NOTE: The .envelope + .dmp files are treated as a single entity for offline cache limits (cache_max_items, cache_max_size).

Store minidump attachments as separate .dmp files in the offline cache
for direct debugger access without the need of manually extracting
minidumps from envelopes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Mar 30, 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 f5a0a7f

Comment thread src/sentry_envelope.c Outdated

@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 2 potential issues.

Fix All in Cursor

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

Comment thread src/backends/sentry_backend_crashpad.cpp
Comment thread src/sentry_envelope.c Outdated
Move ctx->index++ after the write succeeds so failed writes don't
create gaps in the numbering. This ensures foreach_minidump can
always find all written .dmp files by stopping at the first miss.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jpnurmi jpnurmi merged commit 44408be into master Mar 30, 2026
53 checks passed
@jpnurmi jpnurmi deleted the jpnurmi/feat/cache-dmp branch March 30, 2026 13:33
BernhardMarconato pushed a commit to elgatosf/sentry-native that referenced this pull request Apr 21, 2026
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

3 participants