diff --git a/src/core/lib/channel/metrics.cc b/src/core/lib/channel/metrics.cc index c4511c5b1c9..3e108580e38 100644 --- a/src/core/lib/channel/metrics.cc +++ b/src/core/lib/channel/metrics.cc @@ -42,8 +42,7 @@ GlobalInstrumentsRegistry::RegisterUInt64Counter( bool enable_by_default) { auto& instruments = GetInstrumentList(); if (instruments.find(name) != instruments.end()) { - grpc_core::Crash( - absl::StrFormat("Metric name %s has already been registered.", name)); + Crash(absl::StrFormat("Metric name %s has already been registered.", name)); } uint32_t index = instruments.size(); GPR_ASSERT(index < std::numeric_limits::max()); @@ -72,8 +71,7 @@ GlobalInstrumentsRegistry::RegisterDoubleCounter( bool enable_by_default) { auto& instruments = GetInstrumentList(); if (instruments.find(name) != instruments.end()) { - grpc_core::Crash( - absl::StrFormat("Metric name %s has already been registered.", name)); + Crash(absl::StrFormat("Metric name %s has already been registered.", name)); } uint32_t index = instruments.size(); GPR_ASSERT(index < std::numeric_limits::max()); @@ -102,8 +100,7 @@ GlobalInstrumentsRegistry::RegisterUInt64Histogram( bool enable_by_default) { auto& instruments = GetInstrumentList(); if (instruments.find(name) != instruments.end()) { - grpc_core::Crash( - absl::StrFormat("Metric name %s has already been registered.", name)); + Crash(absl::StrFormat("Metric name %s has already been registered.", name)); } uint32_t index = instruments.size(); GPR_ASSERT(index < std::numeric_limits::max()); @@ -132,8 +129,7 @@ GlobalInstrumentsRegistry::RegisterDoubleHistogram( bool enable_by_default) { auto& instruments = GetInstrumentList(); if (instruments.find(name) != instruments.end()) { - grpc_core::Crash( - absl::StrFormat("Metric name %s has already been registered.", name)); + Crash(absl::StrFormat("Metric name %s has already been registered.", name)); } uint32_t index = instruments.size(); GPR_ASSERT(index < std::numeric_limits::max());