6#include <userver/server/handlers/http_handler_base.hpp>
7#include <userver/utils/statistics/fwd.hpp>
11namespace server::handlers {
14enum class StatsFormat;
50 ServerMonitor(
const components::ComponentConfig& config,
51 const components::ComponentContext& component_context);
58 request::RequestContext&)
const override;
63 std::string GetResponseDataForLogging(
64 const http::HttpRequest& request,
request::RequestContext& context,
65 const std::string& response_data)
const override;
67 utils::statistics::Storage& statistics_storage_;
69 using CommonLabels = std::unordered_map<std::string, std::string>;
70 const CommonLabels common_labels_;
71 const std::optional<impl::StatsFormat> default_format_;
78 components::kHasValidate<server::handlers::ServerMonitor> =
true;