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

Commit

Permalink
fix: fix replica::init_table_level_latency_counter metric name error (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zouweiming758 authored Aug 6, 2021
1 parent e89df8d commit 8a5bb4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/replica/replica.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,8 @@ void replica::init_table_level_latency_counters()
_counters_table_level_latency[code] = nullptr;
if (get_storage_rpc_req_codes().find(task_code(code)) !=
get_storage_rpc_req_codes().end()) {
std::string counter_str =
fmt::format("table.level.{}.latency(ns)@{}", task_code(code), _app_info.app_name);
std::string counter_str = fmt::format(
"table.level.{}.latency(ns)@{}", task_code(code).to_string(), _app_info.app_name);
_counters_table_level_latency[code] =
dsn::perf_counters::instance()
.get_app_counter("eon.replica",
Expand Down

0 comments on commit 8a5bb4d

Please sign in to comment.