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

Add some error handling around frame processing #837

Merged
merged 7 commits into from
Jun 3, 2020

Conversation

basepi
Copy link
Contributor

@basepi basepi commented May 27, 2020

See https://discuss.elastic.co/t/python-agent-raise-valueerror/233263

This is not an ideal solution, but I've investigated every code path into this function and I cannot see how the user could see that error. For now we'll just avoid throwing the error and see if any other users see it.

@basepi basepi requested a review from beniwohli May 27, 2020 17:22
@apmmachine
Copy link
Contributor

apmmachine commented May 27, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #837 updated]

  • Start Time: 2020-06-02T23:50:46.605+0000

  • Duration: 27 min 42 sec

Test stats 🧪

Test Results
Failed 0
Passed 9209
Skipped 6796
Total 16005

Copy link
Contributor

@beniwohli beniwohli left a comment

Choose a reason for hiding this comment

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

LGTM

This is a pretty hot path, so we'll need to see what the benchmarks do once this is merged. Seeing as the ValueError should be raised extremely seldomly, it's probably negligible.

@basepi basepi merged commit c1303bc into elastic:master Jun 3, 2020
romulorosa pushed a commit to romulorosa/apm-agent-python that referenced this pull request Oct 15, 2020
* Add some error handling around frame processing

See https://discuss.elastic.co/t/python-agent-raise-valueerror/233263

* Add a log to make sure the user doesn't wonder where the frames are

* Use `break` instead of `continue`

* Add to changelog
romulorosa pushed a commit to romulorosa/apm-agent-python that referenced this pull request Oct 15, 2020
* Add some error handling around frame processing

See https://discuss.elastic.co/t/python-agent-raise-valueerror/233263

* Add a log to make sure the user doesn't wonder where the frames are

* Use `break` instead of `continue`

* Add to changelog
beniwohli pushed a commit to beniwohli/apm-agent-python that referenced this pull request Sep 14, 2021
* Add some error handling around frame processing

See https://discuss.elastic.co/t/python-agent-raise-valueerror/233263

* Add a log to make sure the user doesn't wonder where the frames are

* Use `break` instead of `continue`

* Add to changelog
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.

3 participants