Skip to content

Conversation

@tustanivsky
Copy link
Collaborator

This PR applies the fix introduced in #589 to mobile platforms.


return handler->HandleBeforeSend(EventToProcess, HintToProcess) ? event : nullptr;
USentryEvent* ProcessedEvent = EventToProcess;
if (!FUObjectThreadContext::Get().IsRoutingPostLoad)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we skip the whole method in that case?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense, I've updated beforeSend handlers across all platforms accordingly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick but I'd probably invert the check, bail early and print some debug logs. So users have a way to follow why their beforeSend is not getting called.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough, the check is now inverted and prints a log message explaining why custom beforeSend handling was skipped.

Copy link
Contributor

@bitsandfoxes bitsandfoxes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tustanivsky tustanivsky merged commit 87f21b1 into main Feb 28, 2025
17 of 19 checks passed
@tustanivsky tustanivsky deleted the fix/ensure-post-load branch February 28, 2025 10:47
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