Truncate instead failing if string is too long in writer#304
Open
zoltanjuhasz wants to merge 1 commit intojanestreet:masterfrom
Open
Truncate instead failing if string is too long in writer#304zoltanjuhasz wants to merge 1 commit intojanestreet:masterfrom
zoltanjuhasz wants to merge 1 commit intojanestreet:masterfrom
Conversation
Signed-off-by: Zoltan Juhasz <zoltan.juhasz@radix-trading.com>
30d6ded to
d3aeab3
Compare
|
I have tried this patch on top of latest version and it makes magic-trace a lot more usable 👍 |
Member
|
Thanks for the patch! I think we shouldn't silently truncate these strings, and leave it up to the caller to truncate (or perhaps reformat) the symbols as appropriate. For reference, see how a different variant of this issue was patched in 1087cbf. The right place to address this, I think, would be around magic-trace/src/trace_writer.ml Line 385 in d36c159 In fact, I think you could try using It might work! But otherwise, I think we should truncate |
Edwindareck23
approved these changes
Jul 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a symbol name that is longer than 32k is encountered magic-trace stops processing the collected data. This PR truncates the long string instead if failing.
Original error: