Skip to content

Comments

apollo_http_server: conditionaly add the tx to the instrument print#12788

Open
ArniStarkware wants to merge 1 commit intoarni/http_server/instrument_on_add_txfrom
arni/http_server/instrument_add_tx_print_if_in_length_range
Open

apollo_http_server: conditionaly add the tx to the instrument print#12788
ArniStarkware wants to merge 1 commit intoarni/http_server/instrument_on_add_txfrom
arni/http_server/instrument_add_tx_print_if_in_length_range

Conversation

@ArniStarkware
Copy link
Contributor

@ArniStarkware ArniStarkware commented Feb 22, 2026

Note

Low Risk
Logging-only changes plus new helper methods; low chance of affecting transaction processing, but verify the new thresholds don’t hinder debugging for legitimate large transactions.

Overview
Reduces log/trace verbosity for incoming transactions by conditionally including the full transaction payload in #[instrument] span fields.

For /gateway/add_rpc_transaction, it now logs tx only when signature_len <= 2 and calldata_len <= 100, otherwise records a placeholder string; /gateway/add_transaction similarly skips logging when the raw payload exceeds 2000 bytes. This introduces lightweight helpers on RpcTransaction (and subtypes) to compute signature/calldata lengths to support the new gating logic.

Written by Cursor Bugbot for commit 5e04975. This will update automatically on new commits. Configure here.

@reviewable-StarkWare
Copy link

This change is Reviewable

@ArniStarkware ArniStarkware marked this pull request as ready for review February 22, 2026 15:36
@github-actions
Copy link

github-actions bot commented Feb 22, 2026

Copy link
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@ArniStarkware ArniStarkware force-pushed the arni/http_server/instrument_add_tx_print_if_in_length_range branch from 794c8eb to 5e04975 Compare February 22, 2026 15:43
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