Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)