From 162d3d76cb62ca68540a8a60efd99e46687c26c6 Mon Sep 17 00:00:00 2001 From: Karthik Ravi Shankar Date: Thu, 5 Mar 2020 18:55:14 -0800 Subject: [PATCH] Fix build error due to remaining ::grpc_impl references --- include/grpcpp/opencensus.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/grpcpp/opencensus.h b/include/grpcpp/opencensus.h index c99e203e2e6..1eed9f7d26d 100644 --- a/include/grpcpp/opencensus.h +++ b/include/grpcpp/opencensus.h @@ -21,6 +21,10 @@ #include "opencensus/trace/span.h" +namespace grpc_impl { +class ServerContext; +} + namespace grpc { // These symbols in this file will not be included in the binary unless // grpc_opencensus_plugin build target was added as a dependency. At the moment @@ -38,10 +42,8 @@ void RegisterOpenCensusPlugin(); // ViewDescriptors below. void RegisterOpenCensusViewsForExport(); -class ServerContext; - // Returns the tracing Span for the current RPC. -::opencensus::trace::Span GetSpanFromServerContext(ServerContext* context); +::opencensus::trace::Span GetSpanFromServerContext(::grpc_impl::ServerContext* context); } // namespace grpc