Line data Source code
1 : #pragma once 2 : 3 : #include "envoy/stats/custom_stat_namespaces.h" 4 : 5 : #include "absl/container/flat_hash_set.h" 6 : 7 : namespace Envoy { 8 : namespace Stats { 9 : 10 : class CustomStatNamespacesImpl : public CustomStatNamespaces { 11 : public: 12 2214 : ~CustomStatNamespacesImpl() override = default; 13 : 14 : // CustomStatNamespaces 15 : bool registered(const absl::string_view name) const override; 16 : void registerStatNamespace(const absl::string_view name) override; 17 : absl::optional<absl::string_view> 18 : stripRegisteredPrefix(const absl::string_view stat_name) const override; 19 : 20 : private: 21 : absl::flat_hash_set<std::string> namespaces_; 22 : }; 23 : 24 : } // namespace Stats 25 : } // namespace Envoy