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

fix:Fully populate Rake spans on exceptions #1377

Merged
merged 1 commit into from
Feb 23, 2021
Merged

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented Feb 22, 2021

Rake spans were missing many properties when an error was raised in a Rake task.

This happened because we failed to call annotate_invoke! and annotate_execute! in error scenarios.

This PR ensures annotations happens regardless of the outcome of the Rake task execution. It also increases coverage of the Rake integration, by ensuring that all properties are tested in both the error and non-error path.

@marcotc marcotc added the bug Involves a bug label Feb 22, 2021
@marcotc marcotc self-assigned this Feb 22, 2021
@marcotc marcotc requested a review from a team February 22, 2021 20:19
@marcotc marcotc changed the title fix:Fully populate Rake spans on exception fix:Fully populate Rake spans on exceptions Feb 22, 2021
Copy link
Contributor

@delner delner left a comment

Choose a reason for hiding this comment

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

Makes sense; good change! 👍

@marcotc marcotc merged commit 53d65cf into master Feb 23, 2021
@marcotc marcotc deleted the rake-err-instrument branch February 23, 2021 16:03
@github-actions github-actions bot added this to the 0.46.0 milestone Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Involves a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants