userver: ugrpc::client::GenericOptions Struct Reference
Loading...
Searching...
No Matches
ugrpc::client::GenericOptions Struct Reference

Detailed Description

Definition at line 13 of file generic_options.hpp.

Public Attributes

std::optional< std::string_view > metrics_call_name {"Generic/Generic"}
 

Member Data Documentation

◆ metrics_call_name

std::optional<std::string_view> ugrpc::client::GenericOptions::metrics_call_name {"Generic/Generic"}

If non-nullopt, metrics are accounted for specified fake call name. If nullopt, writes a set of metrics per real call name. If the microservice serves as a proxy and has untrusted clients, it is a good idea to have this option set to non-nullopt to avoid the situations where an upstream client can spam various RPCs with non-existent names, which leads to this microservice spamming RPCs with non-existent names, which leads to creating storage for infinite metrics and causes OOM. The default is to specify "Generic/Generic" fake call name.

Definition at line 23 of file generic_options.hpp.


The documentation for this struct was generated from the following file: