Skip to content

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

Closed
Litarnus wants to merge 7 commits into
masterfrom
martinl/fix-breadcrumbs-console-command
Closed

fix(command): fix breadcrumbs and tag propagation for console commands#935
Litarnus wants to merge 7 commits into
masterfrom
martinl/fix-breadcrumbs-console-command

Conversation

@Litarnus

@Litarnus Litarnus commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

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