opencensus-cpp
opencensus-cpp copied to clipboard
Change the Stackdriver exporters' Register() to return Status.
Make this non-breaking change to the API now, so we can use it to implement https://github.com/census-instrumentation/opencensus-cpp/issues/175 later.
I think these functions should return grpc::Status because almost all of the possible errors come from the RPC stack.
The other kind of Status we have in OpenCensus is for describing the status of a span in our own data model, which I don't think is appropriate here.
Abseil may one day release its own Status type, but that hasn't happened yet.