|
|
@ -19,6 +19,8 @@ |
|
|
|
#ifndef GRPCPP_OPENCENSUS_H |
|
|
|
#ifndef GRPCPP_OPENCENSUS_H |
|
|
|
#define GRPCPP_OPENCENSUS_H |
|
|
|
#define GRPCPP_OPENCENSUS_H |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "opencensus/trace/span.h" |
|
|
|
|
|
|
|
|
|
|
|
namespace grpc { |
|
|
|
namespace grpc { |
|
|
|
// These symbols in this file will not be included in the binary unless
|
|
|
|
// 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
|
|
|
|
// grpc_opencensus_plugin build target was added as a dependency. At the moment
|
|
|
@ -36,6 +38,11 @@ void RegisterOpenCensusPlugin(); |
|
|
|
// ViewDescriptors below.
|
|
|
|
// ViewDescriptors below.
|
|
|
|
void RegisterOpenCensusViewsForExport(); |
|
|
|
void RegisterOpenCensusViewsForExport(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ServerContext; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Returns the tracing Span for the current RPC.
|
|
|
|
|
|
|
|
::opencensus::trace::Span GetSpanFromServerContext(ServerContext* context); |
|
|
|
|
|
|
|
|
|
|
|
} // namespace grpc
|
|
|
|
} // namespace grpc
|
|
|
|
|
|
|
|
|
|
|
|
#endif // GRPCPP_OPENCENSUS_H
|
|
|
|
#endif // GRPCPP_OPENCENSUS_H
|
|
|
|