This diff adds HTTP and GRPC python services that implement TestRequest. Each service tries to register itself on start, and continues to serve requests until it's killed. They can be run as stand-alone scripts (e.g. ./grpcserver.py) or from another python process as e.g. grpcserver.main() or with grpcserver.serve_grpc_binary(): ....
This diff doesn't check the trace context or tags, but I think it makes sense to split that into a separate PR.
I'm using flask here instead of e.g. BaseHTTPServer since opencensus-python ships with flask integration, but I've left the (uninstrumented) BaseHTTPServer service in here as WIP.
This diff adds HTTP and GRPC python services that implement
TestRequest
. Each service tries to register itself on start, and continues to serve requests until it's killed. They can be run as stand-alone scripts (e.g../grpcserver.py
) or from another python process as e.g.grpcserver.main()
orwith grpcserver.serve_grpc_binary(): ...
.This diff doesn't check the trace context or tags, but I think it makes sense to split that into a separate PR.
I'm using flask here instead of e.g.
BaseHTTPServer
since opencensus-python ships with flask integration, but I've left the (uninstrumented)BaseHTTPServer
service in here as WIP.