Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Revert "gRPC calls moved to grpc_impl namespace. (#297)" (#301)
Browse files Browse the repository at this point in the history
This reverts commit f269310.
  • Loading branch information
g-easy authored Mar 20, 2019
1 parent 9b1e354 commit 85fe74b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/grpc/hello_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ int main(int argc, char **argv) {
}

// Register the OpenCensus gRPC plugin to enable stats and tracing in gRPC.
grpc_impl::RegisterOpenCensusPlugin();
grpc::RegisterOpenCensusPlugin();

// Register exporters for Stackdriver.
RegisterStackdriverExporters();
Expand Down
6 changes: 3 additions & 3 deletions examples/grpc/hello_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class HelloServiceImpl final : public HelloService::Service {
grpc::Status SayHello(grpc::ServerContext *context,
const HelloRequest *request,
HelloReply *reply) override {
opencensus::trace::Span span = grpc_impl::GetSpanFromServerContext(context);
opencensus::trace::Span span = grpc::GetSpanFromServerContext(context);
span.AddAttribute("my_attribute", "red");
span.AddAnnotation(
"Constructing greeting.",
Expand Down Expand Up @@ -119,10 +119,10 @@ int main(int argc, char **argv) {
}

// Register the OpenCensus gRPC plugin to enable stats and tracing in gRPC.
grpc_impl::RegisterOpenCensusPlugin();
grpc::RegisterOpenCensusPlugin();

// Register the gRPC views (latency, error count, etc).
grpc_impl::RegisterOpenCensusViewsForExport();
grpc::RegisterOpenCensusViewsForExport();

// Register exporters for Stackdriver.
RegisterStackdriverExporters();
Expand Down

0 comments on commit 85fe74b

Please sign in to comment.