8 """Service that can be used to push metrics between one Application
9 instrumented with OpenCensus and an agent, or between an agent and a
17 channel: A grpc.Channel.
20 '/opencensus.proto.agent.metrics.v1.MetricsService/Export',
21 request_serializer=opencensus_dot_proto_dot_agent_dot_metrics_dot_v1_dot_metrics__service__pb2.ExportMetricsServiceRequest.SerializeToString,
22 response_deserializer=opencensus_dot_proto_dot_agent_dot_metrics_dot_v1_dot_metrics__service__pb2.ExportMetricsServiceResponse.FromString,
27 """Service that can be used to push metrics between one Application
28 instrumented with OpenCensus and an agent, or between an agent and a
32 def Export(self, request_iterator, context):
33 """For performance reasons, it is recommended to keep this RPC
34 alive for the entire life of the application.
36 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
37 context.set_details(
'Method not implemented!')
38 raise NotImplementedError(
'Method not implemented!')
42 rpc_method_handlers = {
45 request_deserializer=opencensus_dot_proto_dot_agent_dot_metrics_dot_v1_dot_metrics__service__pb2.ExportMetricsServiceRequest.FromString,
46 response_serializer=opencensus_dot_proto_dot_agent_dot_metrics_dot_v1_dot_metrics__service__pb2.ExportMetricsServiceResponse.SerializeToString,
50 'opencensus.proto.agent.metrics.v1.MetricsService', rpc_method_handlers)
51 server.add_generic_rpc_handlers((generic_handler,))