def rpc_client_invocation_end_total(self, target, method, call_type, timeout=None): self.put_rpc_client_metrics_to_txqueue( "rpc_client_invocation_end_total", message_type.MetricAction("inc", None), target, method, call_type, timeout)
def rpc_client_processing_seconds(self, target, method, call_type, duration, timeout=None): self.put_rpc_client_metrics_to_txqueue( "rpc_client_processing_seconds", message_type.MetricAction("observe", duration), target, method, call_type, timeout)
def rpc_server_exception_total(self, target, endpoint, ns, ver, method, exception): self.put_rpc_server_metrics_to_txqueue("rpc_server_exception_total", message_type.MetricAction( "inc", None), target, endpoint, ns, ver, method, exception=exception)
def rpc_server_processing_seconds(self, target, endpoint, ns, ver, method, duration): self.put_rpc_server_metrics_to_txqueue( "rpc_server_processing_seconds", message_type.MetricAction("observe", duration), target, endpoint, ns, ver, method)
def rpc_server_invocation_end_total(self, target, endpoint, ns, ver, method): self.put_rpc_server_metrics_to_txqueue( "rpc_server_invocation_end_total", message_type.MetricAction("inc", None), target, endpoint, ns, ver, method)