Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

feat: update dropped-timeout-rpc-count counter type #867

Merged
merged 1 commit into from
Jul 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/dsn/tool-api/task.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(#)",
"#")};

Expand Down Expand Up @@ -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(),
Expand Down