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

[Feature Request] Allow failures to have the traditional pre-3.11 traceback with less information #765

Open
cretz opened this issue Feb 12, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@cretz
Copy link
Member

cretz commented Feb 12, 2025

Describe the solution you'd like

Failure sizes are limited server side. Since Python 3.11, https://peps.python.org/pep-0657/ has been adding a bunch of extra stuff to tracebacks like the code that is failing and the ascii underlines of where. This bloats the traceback considerably causing it to be more likely to overflow the server side limit.

We should allow people to not add this extra data. Unfortunately a quick glance seems to show this cannot be done on a case-by-case basis, the setting is global. So we may have to walk the frames and build our own stack trace. The implementer will have to research this and will have to decide whether this is opt-in behavior or opt-out.

This is separate but related to the feature to partially truncate stack traces at temporalio/features#597.

@cretz cretz added the enhancement New feature or request label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant