feat: support attaching bytes#1275
Conversation
|
|
If we want to stay consistent with other SDKs, |
fc2a84c to
90f233b
Compare
90f233b to
9e3dd5e
Compare
> warning C4190: 'to_crashpad_attachment' has C-linkage specified, > but returns UDT 'crashpad::Attachment' which is incompatible with C
type & content_type are passed separately and content_type is cloned in sentry__attachments_add()
supervacuus
left a comment
There was a problem hiding this comment.
This looks nice, thanks! A couple of minor points and one thing that is probably just a limit of my imagination.
supervacuus
left a comment
There was a problem hiding this comment.
I don't know if you'd still like to add anything, but from my end, this is ready to be released.
|
I don't have anything else in mind regarding attachments. We should now have everything that was requested. Thanks for your time reviewing yet another big PR. |
* feat: Support attaching bytes * fix: move to_crashpad_attachment out of extern C > warning C4190: 'to_crashpad_attachment' has C-linkage specified, > but returns UDT 'crashpad::Attachment' which is incompatible with C * fix: lint * fix: unreachable * test: integration * test: rename * test: attaching bytes to crashpad is supported on win32 and linux * crashpad: dump byte attachments on disk * fix: windows * let crashpad ensure unique file names * fix sentry__attachment_from_buffer * clean up unused uuid * Update external/crashpad * alternative: ensure unique file in sentry_backend_crashpad * clean up * clean up more * switch to std::filesystem * fix leaks in backends * add sentry__attachment_from_path for convenience and to reduce diff * fix self-review findings * revert accidental ws changes * fix attachment_clone type & content_type are passed separately and content_type is cloned in sentry__attachments_add() * unit-testable sentry__path_unique() to back the "-N.tar.gz" claims * include <string> * ref: unique paths for byte attachments * add note about unique file names with crashpad * add missing null checks for screenshots * attachment_clone: add missing error handling * add note and missing test for buffer attachment comparison * Bump external/crashpad * Update external/crashpad * attachment_eq: clarify with a comment * document behavior regarding duplicate attachments * sentry__attachments_remove: replace attachment_eq with ptr cmp
Q: Should it be calledsentry_attach_bufferorsentry_attach_data?A:
sentry_attach_bytesTODO:
Crashpad: IPCfeat: support attaching bytes on Windows and Linux crashpad#127(write files instead due to IPC limits)