6#include <userver/server/handlers/http_handler_base.hpp>
7#include <userver/utils/statistics/fwd.hpp>
11namespace server::handlers {
46 ServerMonitor(
const components::ComponentConfig& config,
47 const components::ComponentContext& component_context);
54 request::RequestContext&)
const override;
59 std::string GetResponseDataForLogging(
60 const http::HttpRequest& request,
request::RequestContext& context,
61 const std::string& response_data)
const override;
63 utils::statistics::Storage& statistics_storage_;
65 using CommonLabels = std::unordered_map<std::string, std::string>;
66 const CommonLabels common_labels_;
73 components::kHasValidate<server::handlers::ServerMonitor> =
true;