aztec-packages icon indicating copy to clipboard operation
aztec-packages copied to clipboard

[BUG]

Open danielntmd opened this issue 7 months ago • 0 comments

What are you trying to do?

I am trying to get the rolling 1-day mean public executor's transaction hashing duration via Prometheus queries. The sum and count metrics for 'PUBLIC_EXECUTOR_TX_HASHING' is the same. In lines 115-117 of https://github.com/AztecProtocol/aztec-packages/blob/master/yarn-project/simulator/src/public/executor_metrics.ts, there is a ceiling called on duration which will map each transaction with exactly 1 ms if each hashing takes less than 1 ms. Maybe removing ceiling or using microseconds could yield more meaningful analytics.

Code Reference

recordTxHashComputation(durationMs: number) { this.txHashing.record(Math.ceil(durationMs)); }

Aztec Version

latest (unsure)

OS

N/A

Browser (if relevant)

No response

Node Version

N/A

Additional Context

No response

danielntmd avatar May 20 '25 17:05 danielntmd