userver: ugrpc::RequestInfo Struct Reference
Loading...
Searching...
No Matches
ugrpc::RequestInfo Struct Reference

#include <userver/ugrpc/rich_status.hpp>

Detailed Description

Contains metadata about the request for debugging and logging.

See also
https://github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto
ugrpc::RichStatus

Use this detail to provide request identification information that can help with debugging and tracking requests across services.

Example usage:

grpc::StatusCode::INTERNAL,
"Internal server error",
ugrpc::RequestInfo{"req-20231215-abc123", "backend-server-42"},
};

Definition at line 274 of file rich_status.hpp.

Public Member Functions

google::rpc::RequestInfo ToGoogleErrorDetail () const &
google::rpc::RequestInfo ToGoogleErrorDetail () &&

Static Public Member Functions

static std::optional< RequestInfoTryUnpack (const google::protobuf::Any &any)

Public Attributes

std::string request_id
std::string serving_data

Member Data Documentation

◆ request_id

std::string ugrpc::RequestInfo::request_id

Definition at line 275 of file rich_status.hpp.

◆ serving_data

std::string ugrpc::RequestInfo::serving_data

Definition at line 276 of file rich_status.hpp.


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