Skip to content

Truncate error backtrace when saving failed executions #260

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

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

rosa
Copy link
Member

@rosa rosa commented Jul 16, 2024

Otherwise it can get really big for SystemStackError errors, and not fit in the DB text column.

Assuming an average of 150 characters per backtrace line, limting to 400 would be around 60K characters plus the error name and error message, that are usually small, and the JSON attributes and other JSON serialization characters.

This is the first approach to this. I'll change this to more sophisticated truncation that checks the column size and calculates how much it needs to truncate instead of using a fixed number.

Otherwise it can get really big for SystemStackError errors, and not fit
in the DB text column.

Assuming an average of 150 characters per backtrace line, limting to 400
would be around 60K characters plus the error name and error message,
that are usually small, and the JSON attributes and other JSON
serialization characters.

This is the first approach to this. I'll change this to more
sophisticated truncation that checks the column size and calculates how
much it needs to truncate instead of using a fixed number.
@rosa rosa merged commit 90f4e13 into main Jul 16, 2024
8 checks passed
@rosa rosa deleted the truncate-error-backtrace branch July 16, 2024 20:08
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.

1 participant