Function record_rpc_error

Source
pub fn record_rpc_error(network: &str, status_code: &str, error_type: &str)
Expand description

Records an RPC request error.

§Arguments

  • network - The network slug
  • status_code - The HTTP status code as a string (e.g., “429”, “500”, or “0” for network errors)
  • error_type - The type of error (e.g., “http”, “network”, “timeout”)