userver: ugrpc::server::ServiceConfig Struct Reference
Loading...
Searching...
No Matches
ugrpc::server::ServiceConfig Struct Referencefinal

#include <userver/ugrpc/server/service_base.hpp>

Detailed Description

Per-service settings.

Definition at line 25 of file service_base.hpp.

Public Attributes

engine::TaskProcessor & task_processor
 TaskProcessor to use for serving RPCs.
Middlewares middlewares
 Server middlewares to use for the gRPC service.
boost::container::flat_map< grpc::StatusCode, logging::Level > status_codes_log_level
dynamic_config::Source config_source
 The dynamic_config::Source used to serve RPCs for this service.
bool always_log_call_spans {false}
 Force logging of the service's RPC spans. Trace sampling and USERVER_NO_LOG_SPANS still apply.
bool use_protobuf_arena {false}
 Enable per-call protobuf arenas for typed RPCs. Disabled by default.

Member Data Documentation

◆ always_log_call_spans

bool ugrpc::server::ServiceConfig::always_log_call_spans {false}

Force logging of the service's RPC spans. Trace sampling and USERVER_NO_LOG_SPANS still apply.

Definition at line 40 of file service_base.hpp.

◆ config_source

dynamic_config::Source ugrpc::server::ServiceConfig::config_source

The dynamic_config::Source used to serve RPCs for this service.

Definition at line 37 of file service_base.hpp.

◆ middlewares

Middlewares ugrpc::server::ServiceConfig::middlewares

Server middlewares to use for the gRPC service.

Definition at line 30 of file service_base.hpp.

◆ status_codes_log_level

boost::container::flat_map<grpc::StatusCode, logging::Level> ugrpc::server::ServiceConfig::status_codes_log_level

map of "status_code": log_level items to override span log level for specific status codes see ugrpc::StatusCodeFromString for available statuses

Definition at line 34 of file service_base.hpp.

◆ task_processor

engine::TaskProcessor& ugrpc::server::ServiceConfig::task_processor

TaskProcessor to use for serving RPCs.

Definition at line 27 of file service_base.hpp.

◆ use_protobuf_arena

bool ugrpc::server::ServiceConfig::use_protobuf_arena {false}

Enable per-call protobuf arenas for typed RPCs. Disabled by default.

Definition at line 42 of file service_base.hpp.


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