Line data Source code
1 : #include "source/common/grpc/stat_names.h" 2 : 3 : namespace Envoy { 4 : namespace Grpc { 5 : 6 : StatNames::StatNames(Stats::SymbolTable& symbol_table) 7 : : pool_(symbol_table), streams_total_(pool_.add("streams_total")), 8 481 : google_grpc_client_creation_(pool_.add("google_grpc_client_creation")) { 9 8658 : for (uint32_t i = 0; i <= Status::WellKnownGrpcStatus::MaximumKnown; ++i) { 10 8177 : std::string status_str = absl::StrCat(i); 11 8177 : streams_closed_[i] = pool_.add(absl::StrCat("streams_closed_", status_str)); 12 8177 : status_names_[status_str] = pool_.add(status_str); 13 8177 : } 14 481 : } 15 : 16 : } // namespace Grpc 17 : } // namespace Envoy