#include <call_metric_recorder.h>
Records call metrics for the purpose of load balancing. During an RPC, call ServerContext::ExperimentalGetCallMetricRecorder() method to retrive the recorder for the current call.
Definition at line 52 of file call_metric_recorder.h.
◆ CallMetricRecorder()
grpc::experimental::CallMetricRecorder::CallMetricRecorder |
( |
grpc_core::Arena * |
arena | ) |
|
|
explicit |
◆ ~CallMetricRecorder()
grpc::experimental::CallMetricRecorder::~CallMetricRecorder |
( |
| ) |
|
◆ CreateSerializedReport()
absl::optional< std::string > grpc::experimental::CallMetricRecorder::CreateSerializedReport |
( |
| ) |
|
|
private |
◆ RecordCpuUtilizationMetric()
CallMetricRecorder & grpc::experimental::CallMetricRecorder::RecordCpuUtilizationMetric |
( |
double |
value | ) |
|
Records a call metric measurement for CPU utilization. Multiple calls to this method will override the stored value.
Definition at line 47 of file call_metric_recorder.cc.
◆ RecordMemoryUtilizationMetric()
CallMetricRecorder & grpc::experimental::CallMetricRecorder::RecordMemoryUtilizationMetric |
( |
double |
value | ) |
|
Records a call metric measurement for memory utilization. Multiple calls to this method will override the stored value.
Definition at line 54 of file call_metric_recorder.cc.
◆ RecordRequestCostMetric()
Records a call metric measurement for request cost. Multiple calls to this method with the same name will override the corresponding stored value. The lifetime of the name string needs to be longer than the lifetime of the RPC itself, since it's going to be sent as trailers after the RPC finishes. It is assumed the strings are common names that are global constants.
Definition at line 69 of file call_metric_recorder.cc.
◆ RecordUtilizationMetric()
Records a call metric measurement for utilization. Multiple calls to this method with the same name will override the corresponding stored value. The lifetime of the name string needs to be longer than the lifetime of the RPC itself, since it's going to be sent as trailers after the RPC finishes. It is assumed the strings are common names that are global constants.
Definition at line 61 of file call_metric_recorder.cc.
◆ experimental::OrcaServerInterceptor
◆ mu_ [1/2]
◆ mu_ [2/2]
The documentation for this class was generated from the following files: