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

Detailed Description

Definition at line 20 of file generic.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 35 of file generic.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 24 of file generic.hpp.


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