Skip to content

head_lag_pool_observed_total counts log events, not trades - #2819

Open
Flotapponnier wants to merge 1 commit into
mainfrom
fix/pool-observed-help
Open

Flotapponnier wants to merge 1 commit into
mainfrom
fix/pool-observed-help

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

I wrote the Help as "Trades observed by the bench pool subscription" in #2811, then read the counter back as a trade rate while sanity-checking today's new alert rules. On EVM it is neither.

eth_subscribe on a pool address delivers every event the pool emits (Swap, Mint, Burn, Collect), so one swap can arrive as several. Measured on the BNB pool: 49,672 events/h against roughly 18,380 swaps, a factor of 2.7. Solana logsSubscribe is per transaction, so there the two coincide — which is why the mislabel survived, since every number I had checked it against was Solana.

Help string only, no behaviour change. The counter is still exactly right for what it is used for: telling a live pool subscription from a dead one in race.go, and the two alert rules added today that test it against zero. It is wrong only as a trade count, which is how I was about to read it.

Rides the next harness deploy; not worth one of its own.

🤖 Generated with Claude Code

I wrote the Help as "Trades observed by the bench pool subscription" in
#2811 and then read the counter back as a trade rate while checking the new
alert rules. On EVM it is neither.

eth_subscribe on a pool address delivers every event the pool emits (Swap,
Mint, Burn, Collect), so one swap can arrive as several. Measured on the BNB
pool: 49,672 events an hour against roughly 18,380 swaps, a factor of 2.7.
Solana logsSubscribe is per transaction, so there the two coincide, which is
why the mislabel survived: every number I had checked it against was Solana.

Help string only, no behaviour change. The counter is still exactly right for
what the race filter uses it for, which is telling a live pool subscription
from a dead one, and for the two alert rules added today that test it against
zero. It is wrong only as a trade count, which is how I was about to read it.

Rides the next harness deploy; not worth one of its own.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

This branch has not been deployed

No deployments
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