예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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)
예제 #5
0
 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)