8 """Service that can be used to push spans and configs between one Application
9 instrumented with OpenCensus and an agent, or between an agent and a
10 central collector or config service (in this case spans and configs are
11 sent/received to/from multiple Applications).
18 channel: A grpc.Channel.
21 '/opencensus.proto.agent.trace.v1.TraceService/Config',
22 request_serializer=opencensus_dot_proto_dot_agent_dot_trace_dot_v1_dot_trace__service__pb2.CurrentLibraryConfig.SerializeToString,
23 response_deserializer=opencensus_dot_proto_dot_agent_dot_trace_dot_v1_dot_trace__service__pb2.UpdatedLibraryConfig.FromString,
26 '/opencensus.proto.agent.trace.v1.TraceService/Export',
27 request_serializer=opencensus_dot_proto_dot_agent_dot_trace_dot_v1_dot_trace__service__pb2.ExportTraceServiceRequest.SerializeToString,
28 response_deserializer=opencensus_dot_proto_dot_agent_dot_trace_dot_v1_dot_trace__service__pb2.ExportTraceServiceResponse.FromString,
33 """Service that can be used to push spans and configs between one Application
34 instrumented with OpenCensus and an agent, or between an agent and a
35 central collector or config service (in this case spans and configs are
36 sent/received to/from multiple Applications).
39 def Config(self, request_iterator, context):
40 """After initialization, this RPC must be kept alive for the entire life of
41 the application. The agent pushes configs down to applications via a
44 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
45 context.set_details(
'Method not implemented!')
46 raise NotImplementedError(
'Method not implemented!')
48 def Export(self, request_iterator, context):
49 """For performance reasons, it is recommended to keep this RPC
50 alive for the entire life of the application.
52 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
53 context.set_details(
'Method not implemented!')
54 raise NotImplementedError(
'Method not implemented!')
58 rpc_method_handlers = {
61 request_deserializer=opencensus_dot_proto_dot_agent_dot_trace_dot_v1_dot_trace__service__pb2.CurrentLibraryConfig.FromString,
62 response_serializer=opencensus_dot_proto_dot_agent_dot_trace_dot_v1_dot_trace__service__pb2.UpdatedLibraryConfig.SerializeToString,
66 request_deserializer=opencensus_dot_proto_dot_agent_dot_trace_dot_v1_dot_trace__service__pb2.ExportTraceServiceRequest.FromString,
67 response_serializer=opencensus_dot_proto_dot_agent_dot_trace_dot_v1_dot_trace__service__pb2.ExportTraceServiceResponse.SerializeToString,
71 'opencensus.proto.agent.trace.v1.TraceService', rpc_method_handlers)
72 server.add_generic_rpc_handlers((generic_handler,))