userver: userver/server/request/client_metrics_shard.hpp File Reference
Loading...
Searching...
No Matches
client_metrics_shard.hpp File Reference

Detailed Description

Set the client metrics shard (path + labels) for requests performed by the current task and its child tasks.

Definition in file client_metrics_shard.hpp.

Go to the source code of this file.

#include <optional>
#include <string_view>
#include <userver/server/request/impl/client_metrics_shard.hpp>
#include <userver/utils/statistics/labels.hpp>

Classes

class  server::request::ClientMetricsShardScope
 Sets the client metrics shard (see SetClientMetricsShard) within its scope and restores the previous one on destruction. More...

Namespaces

namespace  server::request
 Server request related types and functions.

Functions

void server::request::SetClientMetricsShard (std::string_view path, utils::statistics::LabelsSpan labels)
 Set the client metrics shard (path + labels) for requests performed by the current task and its child tasks.
void server::request::EraseClientMetricsShard () noexcept
 Remove the client metrics shard set by SetClientMetricsShard for requests performed by the current task and its child tasks.