openzeppelin_
monitor
1.3.0
record_
rpc_
request
Sections
Arguments
In openzeppelin_
monitor::
utils::
metrics
openzeppelin_monitor
::
utils
::
metrics
Function
record_rpc_request
Copy item path
Source
pub fn record_rpc_request(network: &
str
, method: &
str
)
Expand description
Records an RPC request.
§
Arguments
network
- The network slug (e.g., “ethereum”, “polygon”)
method
- The RPC method name (e.g., “eth_getBlockByNumber”)