-
-
Notifications
You must be signed in to change notification settings - Fork 9
ref: Event processing #202
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
c214b2e
to
1967cfb
Compare
* Those are added by the Android SDK
1967cfb
to
ad88d7f
Compare
I'm not sure if we need a changelog entry for this. |
@sentry review |
On it! We are reviewing the PR and will provide feedback shortly. |
PR DescriptionThis pull request introduces a new event processing pipeline to the Sentry Godot SDK. The primary goal is to provide a more modular and extensible way to process Sentry events before they are sent to the Sentry backend. This allows for easier addition of new features like automatic screenshot and view hierarchy attachment, as well as more flexible customization through event processors. Click to see moreKey Technical Changes
Architecture DecisionsThe architectural decision was made to use a chain-of-responsibility pattern for event processors. This allows for multiple processors to be applied to an event in a defined order, with each processor having the option to modify or discard the event. This pattern promotes modularity and extensibility. Dependencies and InteractionsThis pull request modifies the core event handling logic and interacts with the following parts of the system:
Risk Considerations
Notable Implementation Details
|
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
Show resolved
Hide resolved
f718153
to
2916c0b
Compare
I addressed points that I found useful from the bot's review. |
@romtsn maybe can peek at the kotlin? hoping @tustanivsky or @vaind can peek at the C++ 🙏 |
return p_event; | ||
} | ||
if (is_main_thread) { | ||
last_screenshot_frame = current_frame; |
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.
I'm thinking this is done too early - e.g. if we exit early in one of the ifs
below, like get_level or before_capture checks, we'd still memoize the last_screenshot_frame
here although the screenshot hasn't been taken.
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.
Addressed in 61e0e58
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.
kotlin LGTM, a couple of questions to the cpp code, but I'm no expert there so take it or leave it :)
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.
C++ looks good as well - really like this new approach with event processors!
Depends on:
#skip-changelog