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

Commit

Permalink
feat: update dropped-timeout-rpc-count counter type (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
hycdong authored Jul 30, 2021
1 parent e3e24f7 commit a530ef4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit a530ef4

Please sign in to comment.