@@ -99,8 +99,9 @@ type ExecutionCollector struct {
9999 evmBlockTxCount prometheus.Histogram
100100 evmBlockGasUsed prometheus.Histogram
101101 callbacksExecutedCount prometheus.Histogram
102- callbacksProcessGasUsed prometheus.Histogram
103- callbacksExecuteGasLimits prometheus.Histogram
102+ callbacksExecutedTotal prometheus.Counter
103+ callbacksProcessComputationUsed prometheus.Histogram
104+ callbacksExecuteComputationLimits prometheus.Histogram
104105}
105106
106107func NewExecutionCollector (tracer module.Tracer ) * ExecutionCollector {
@@ -805,19 +806,26 @@ func NewExecutionCollector(tracer module.Tracer) *ExecutionCollector {
805806 Buckets : prometheus .ExponentialBuckets (1 , 2 , 8 ),
806807 }),
807808
808- callbacksProcessGasUsed : promauto .NewHistogram (prometheus.HistogramOpts {
809+ callbacksExecutedTotal : promauto .NewCounter (prometheus.CounterOpts {
809810 Namespace : namespaceExecution ,
810811 Subsystem : subsystemRuntime ,
811- Name : "callbacks_process_gas_used" ,
812- Help : "the gas used by the process callback transaction" ,
812+ Name : "callbacks_executed_total" ,
813+ Help : "the total number of callbacks executed" ,
814+ }),
815+
816+ callbacksProcessComputationUsed : promauto .NewHistogram (prometheus.HistogramOpts {
817+ Namespace : namespaceExecution ,
818+ Subsystem : subsystemRuntime ,
819+ Name : "callbacks_process_computation_used" ,
820+ Help : "the computation used by the process callback transaction" ,
813821 Buckets : prometheus .ExponentialBuckets (10_000 , 2 , 12 ),
814822 }),
815823
816- callbacksExecuteGasLimits : promauto .NewHistogram (prometheus.HistogramOpts {
824+ callbacksExecuteComputationLimits : promauto .NewHistogram (prometheus.HistogramOpts {
817825 Namespace : namespaceExecution ,
818826 Subsystem : subsystemRuntime ,
819- Name : "callbacks_execute_gas_limits " ,
820- Help : "the total gas limits for execute callback transactions" ,
827+ Name : "callbacks_execute_computation_limits " ,
828+ Help : "the total computation limits for execute callback transactions" ,
821829 Buckets : prometheus .ExponentialBuckets (10_000 , 2 , 12 ),
822830 }),
823831 }
@@ -911,10 +919,11 @@ func (ec *ExecutionCollector) ExecutionScriptExecuted(dur time.Duration, compUse
911919}
912920
913921// ExecutionCallbacksExecuted reports callback execution metrics
914- func (ec * ExecutionCollector ) ExecutionCallbacksExecuted (callbackCount int , processGasUsed , executeGasLimits uint64 ) {
922+ func (ec * ExecutionCollector ) ExecutionCallbacksExecuted (callbackCount int , processComputationUsed , executeComputationLimits uint64 ) {
915923 ec .callbacksExecutedCount .Observe (float64 (callbackCount ))
916- ec .callbacksProcessGasUsed .Observe (float64 (processGasUsed ))
917- ec .callbacksExecuteGasLimits .Observe (float64 (executeGasLimits ))
924+ ec .callbacksExecutedTotal .Add (float64 (callbackCount ))
925+ ec .callbacksProcessComputationUsed .Observe (float64 (processComputationUsed ))
926+ ec .callbacksExecuteComputationLimits .Observe (float64 (executeComputationLimits ))
918927}
919928
920929// ExecutionStateStorageDiskTotal reports the total storage size of the execution state on disk in bytes
0 commit comments