Skip to content

Improves parser by handling edge cases and adding metrics#432

Merged
emmanuelm41 merged 6 commits into
devfrom
fix/trace-parsing
Jun 24, 2025
Merged

Improves parser by handling edge cases and adding metrics#432
emmanuelm41 merged 6 commits into
devfrom
fix/trace-parsing

Conversation

@emmanuelm41
Copy link
Copy Markdown
Member

@emmanuelm41 emmanuelm41 commented Jun 24, 2025

Enhances the parser to better handle specific edge cases encountered during transaction processing, preventing potential errors.

  • Addresses scenarios where traces lack messages or execution traces by providing fallback mechanisms and logging warnings.
  • Introduces new metrics to monitor and track these previously uncovered scenarios, providing better visibility into parser behavior and potential issues.
  • Fixes a case where the ExecutionTrace.MsgRct.ExitCode differs from MsgRct.ExitCode, ensuring more reliable transaction processing.

🔗 zboto Link

@windsurf-bot
Copy link
Copy Markdown

windsurf-bot Bot commented Jun 24, 2025

PR review rate limit exceeded

@emmanuelm41 emmanuelm41 requested a review from ziscky June 24, 2025 00:15
emmanuelm41 and others added 3 commits June 23, 2025 22:22
Addresses an issue where the execution trace's exit code differs from the main transaction's exit code.

In such cases, logs the discrepancy and falls back to using the top-level transaction information to ensure data consistency.

Adds duration to the fallback information.
@emmanuelm41 emmanuelm41 merged commit 54f0519 into dev Jun 24, 2025
6 checks passed
@emmanuelm41 emmanuelm41 deleted the fix/trace-parsing branch June 24, 2025 14:27
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