Skip to content

Commit 162d3d7

Browse files
committed
Fix build error due to remaining ::grpc_impl references
1 parent 4c75b5c commit 162d3d7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

include/grpcpp/opencensus.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121

2222
#include "opencensus/trace/span.h"
2323

24+
namespace grpc_impl {
25+
class ServerContext;
26+
}
27+
2428
namespace grpc {
2529
// These symbols in this file will not be included in the binary unless
2630
// grpc_opencensus_plugin build target was added as a dependency. At the moment
@@ -38,10 +42,8 @@ void RegisterOpenCensusPlugin();
3842
// ViewDescriptors below.
3943
void RegisterOpenCensusViewsForExport();
4044

41-
class ServerContext;
42-
4345
// Returns the tracing Span for the current RPC.
44-
::opencensus::trace::Span GetSpanFromServerContext(ServerContext* context);
46+
::opencensus::trace::Span GetSpanFromServerContext(::grpc_impl::ServerContext* context);
4547

4648
} // namespace grpc
4749

0 commit comments

Comments
 (0)