Skip to content

fix(command): fix breadcrumbs and tag propagation for console commands #935

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

Closed
wants to merge 7 commits into from

Conversation

Litarnus
Copy link

@Litarnus Litarnus commented Aug 6, 2025

This PR improves scope handling for symfony commands. Prior to this change, the scope was always reset on command termination, which would happen before sentry captures an exception that happens within the ConsoleCommand.

The console listener will now keep track if errors occurred during a command and will not reset the scope, which will add more context like breadcrumbs to the event.

It will also not reset the scope if the root command terminates to allow breadcrumbs to be added to an event.

@Litarnus Litarnus self-assigned this Aug 6, 2025
@Litarnus Litarnus marked this pull request as ready for review August 6, 2025 11:18
@Litarnus Litarnus marked this pull request as draft August 8, 2025 09:30
@cleptric cleptric closed this Aug 11, 2025
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.

2 participants