-
-
Notifications
You must be signed in to change notification settings - Fork 9
feat: Add user attachments support #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
b6b46b8
to
4508c99
Compare
@sentry review |
On it! We are reviewing the PR and will provide feedback shortly. |
PR DescriptionThis pull request introduces user-defined attachment support to the Sentry Godot SDK. The goal is to allow developers to attach arbitrary files or byte data to Sentry events, providing more context for debugging and issue resolution. Click to see moreKey Technical ChangesThe key technical changes include: 1) Creation of a Architecture DecisionsThe architectural decisions involve creating an abstraction ( Dependencies and InteractionsThis change depends on the Godot Engine's file system and data structures (e.g., Risk ConsiderationsPotential risks include: 1) File access issues if the Godot application does not have the necessary permissions to read the attached files. 2) Performance overhead if large files are attached, especially on mobile platforms. 3) Compatibility issues with older versions of the Sentry native library or Android plugin. 4) Increased event size, potentially leading to higher data usage and Sentry costs. 5) Incorrect content type leading to issues with Sentry displaying the attachment correctly. Notable Implementation DetailsNotable implementation details include: 1) The use of |
android_lib/src/main/java/io/sentry/godotplugin/SentryAndroidGodotPlugin.kt
Outdated
Show resolved
Hide resolved
android_lib/src/main/java/io/sentry/godotplugin/SentryAndroidGodotPlugin.kt
Outdated
Show resolved
Hide resolved
android_lib/src/main/java/io/sentry/godotplugin/SentryAndroidGodotPlugin.kt
Outdated
Show resolved
Hide resolved
android_lib/src/main/java/io/sentry/godotplugin/SentryAndroidGodotPlugin.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One open question about sentry-cocoa remains for the future (maybe something we could contribute if necessary?), but everything included in the PR looks good to me. 👍
Special thanks to the bot for helping ironing out the details. 😁
Add user attachments support
SentryAttachment.create_with_path()
- attach files from diskSentryAttachment.create_with_bytes()
- attach in-memory data