Skip to content
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

Always register the console scheduling macro #900

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

stayallive
Copy link
Collaborator

Fixes #899

Lumen runs service provider register / boot in a different order with scheduling console commands. Our registering of the sentryMonitor macro wasn't comptible with that and caused the macro to be incorrectly registered.

I've changed it to always register the macro (since that is very cheap) and add a flag to indicate if we should actually handle check in events instead so we can still disable sending events if no DSN is passed.

Tests haven't changed because functionality has not (and we have no Lumen specific tests we would need for this).

@stayallive stayallive requested a review from cleptric May 27, 2024 09:45
@stayallive stayallive self-assigned this May 27, 2024
@stayallive stayallive merged commit f6f5248 into master Jun 4, 2024
24 checks passed
@stayallive stayallive deleted the fix-scheduling-integration branch June 4, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sentry Cron Lumen not work
2 participants