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,
const components::ComponentContext& component_context);
61 std::string GetResponseDataForLogging(
62 const http::HttpRequest& request,
63 request::RequestContext& context,
64 const std::string& response_data
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_;
77inline constexpr bool components::kHasValidate<server::handlers::ServerMonitor> =
true;