Skip to content

Allow exceptions to be manually reported to Pulse #21

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

Merged
merged 2 commits into from
Oct 5, 2023
Merged

Conversation

timacdonald
Copy link
Member

When using the exception handlers reportable method, a closure can return false to indicate that the exception has been handled and does not need to "bubble up" to other handlers.

We do this in Forge, for example, to only log errors to our error tracker or the application logs, but not both.

This introduces a manual mechanism to report exceptions to Pulse manually.

Pulse::report($exception);

I've used events here so that other recorders can also listen for the reporting of exceptions.

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.

2 participants