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

Send exceptions to process_batch instrumenter #350

Merged
merged 2 commits into from
Oct 6, 2023

Conversation

lairen
Copy link
Contributor

@lairen lairen commented Sep 1, 2023

When exceptions are raised by the processing code in process_batch, the with_pause method is swallowing them, so the instrumentation does not receive the exception

This PR makes it so that the instrumentation receives the processing exceptions.

@deepredsky
Copy link
Contributor

@lairen would you be able to add a test to cover this?

@lairen
Copy link
Contributor Author

lairen commented Oct 4, 2023

@deepredsky done. i also added the specs for the process_message instrumentation and made the begin/rescue handling for process_batch consistent with what is in process

@lairen lairen force-pushed the fix-process-batch-instrumentation branch 2 times, most recently from 4f4509a to 7be4f0d Compare October 4, 2023 21:36
@lairen lairen force-pushed the fix-process-batch-instrumentation branch from 7be4f0d to b392a6c Compare October 4, 2023 23:13
@deepredsky deepredsky merged commit 792007a into zendesk:master Oct 6, 2023
6 checks passed
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