From a530ef4ec232ca48646cf131118cbf6ba6d28d36 Mon Sep 17 00:00:00 2001 From: HeYuchen <377710264@qq.com> Date: Fri, 30 Jul 2021 09:24:23 +0800 Subject: [PATCH] feat: update dropped-timeout-rpc-count counter type (#867) --- include/dsn/tool-api/task.h | 2 +- src/runtime/profiler.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/dsn/tool-api/task.h b/include/dsn/tool-api/task.h index 2561fd69e5..8ceb71e49b 100644 --- a/include/dsn/tool-api/task.h +++ b/include/dsn/tool-api/task.h @@ -435,7 +435,7 @@ class rpc_request_task : public task _handler(_request); } } else { - dwarn("rpc_request_task(%s) from(%s) stop to execute due to timeout_ms(%d) exceed", + dinfo("rpc_request_task(%s) from(%s) stop to execute due to timeout_ms(%d) exceed", spec().name.c_str(), _request->header->from_address.to_string(), _request->header->client.timeout_ms); diff --git a/src/runtime/profiler.cpp b/src/runtime/profiler.cpp index 5aeaa645d8..6c4fe3148a 100644 --- a/src/runtime/profiler.cpp +++ b/src/runtime/profiler.cpp @@ -109,7 +109,7 @@ counter_info *counter_info_ptr[] = { {"task.inqueue", "tiq"}, TASK_IN_QUEUE, COUNTER_TYPE_NUMBER, "InQueue(#)", "#"), new counter_info({"rpc.dropped", "rdit"}, RPC_DROPPED_IF_TIMEOUT, - COUNTER_TYPE_NUMBER, + COUNTER_TYPE_VOLATILE_NUMBER, "RPC.DROPPED(#)", "#")}; @@ -484,7 +484,7 @@ void profiler::install(service_spec &) "zion", "profiler", (name + std::string(".rpc.dropped")).c_str(), - COUNTER_TYPE_NUMBER, + COUNTER_TYPE_VOLATILE_NUMBER, "rpc dropped if queue time exceed client timeout"); } else if (spec->type == dsn_task_type_t::TASK_TYPE_RPC_RESPONSE) { if (dsn_config_get_value_bool(section_name.c_str(),