userver: ugrpc::client::GenericOptions Struct Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
ugrpc::client::GenericOptions Struct Reference

Detailed Description

Definition at line 21 of file generic_client.hpp.

Public Attributes

Qos qos {}
 
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 36 of file generic_client.hpp.

◆ qos

Qos ugrpc::client::GenericOptions::qos {}

Client QOS for this call. Note that there is no QOS dynamic config by default, so unless a timeout is specified here, only the deadline propagation mechanism will affect the gRPC deadline.

Definition at line 25 of file generic_client.hpp.


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