From 5b9ef30e640d6c3d2dd600e10e3fd5c2cbbd0bf2 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 15 Aug 2023 17:08:11 -0700 Subject: [PATCH] include user_error_response in aggregate stats --- Cargo.lock | 4 ++-- web3_proxy/Cargo.toml | 2 +- web3_proxy/src/stats/influxdb_queries.rs | 3 ++- web3_proxy_cli/Cargo.toml | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9295061d..ef181c7f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7242,7 +7242,7 @@ dependencies = [ [[package]] name = "web3_proxy" -version = "1.42.7" +version = "1.42.8" dependencies = [ "anyhow", "arc-swap", @@ -7323,7 +7323,7 @@ dependencies = [ [[package]] name = "web3_proxy_cli" -version = "1.42.7" +version = "1.42.8" dependencies = [ "env_logger", "parking_lot", diff --git a/web3_proxy/Cargo.toml b/web3_proxy/Cargo.toml index 8fabcf0e..cb476907 100644 --- a/web3_proxy/Cargo.toml +++ b/web3_proxy/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "web3_proxy" -version = "1.42.7" +version = "1.42.8" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/web3_proxy/src/stats/influxdb_queries.rs b/web3_proxy/src/stats/influxdb_queries.rs index df220e0a..7c62329d 100644 --- a/web3_proxy/src/stats/influxdb_queries.rs +++ b/web3_proxy/src/stats/influxdb_queries.rs @@ -212,6 +212,7 @@ pub async fn query_user_influx_stats<'a>( "chain_id", "error_response", "rpc_secret_key_id", + "user_error_response", ]"# } StatType::Detailed => { @@ -547,7 +548,7 @@ pub async fn query_user_influx_stats<'a>( error!("error_response should always be a String!"); } } - } else if stat_response_type == StatType::Detailed && key == "user_error_response" { + } else if key == "user_error_response" { match value { influxdb2_structmap::value::Value::String(inner) => { out.insert( diff --git a/web3_proxy_cli/Cargo.toml b/web3_proxy_cli/Cargo.toml index 4d277cec..40ca0a78 100644 --- a/web3_proxy_cli/Cargo.toml +++ b/web3_proxy_cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "web3_proxy_cli" -version = "1.42.7" +version = "1.42.8" edition = "2021" default-run = "web3_proxy_cli"