Line data Source code
1 : #include "source/extensions/http/cache/file_system_http_cache/stats.h" 2 : 3 : #include "absl/strings/str_replace.h" 4 : 5 : namespace Envoy { 6 : namespace Extensions { 7 : namespace HttpFilters { 8 : namespace Cache { 9 : namespace FileSystemHttpCache { 10 : 11 : CacheStats generateStats(CacheStatNames& stat_names, Stats::Scope& scope, 12 0 : absl::string_view cache_path) { 13 0 : Stats::StatName cache_path_statname = 14 0 : stat_names.pool_.add(absl::StrReplaceAll(cache_path, {{".", "_"}})); 15 0 : return {stat_names, scope, cache_path_statname}; 16 0 : } 17 : 18 : } // namespace FileSystemHttpCache 19 : } // namespace Cache 20 : } // namespace HttpFilters 21 : } // namespace Extensions 22 : } // namespace Envoy