You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(tus): cache external attachments by type, choose upload method at transport time
Replace sentry__is_large_attachment(path, size) with
sentry__attachment_is_external(att) which returns true for MINIDUMP type
or size >= SENTRY_LARGE_ATTACHMENT_SIZE. Minidumps are always cached as
external files; other large attachments continue to be cached by size.
Rename sentry__cache_large_attachments to sentry__cache_external_attachments.
At transport time, resolve_and_send_external_attachments checks each
cached attachment: large files with TUS support go via TUS upload,
smaller files are inlined into the envelope. For raw envelopes (read
from disk on restart), sentry__envelope_append_raw_attachment builds
the item bytes and appends them directly to the raw payload buffer.
External attachment cleanup is deferred until after successful send
so files survive for retry on network failure.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments