This repository was archived by the owner on Jul 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed
Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ fetchcontent_declare(prometheus
3030 GIT_TAG
3131 master)
3232fetchcontent_declare(benchmark
33- GIT_REPOSITORY
34- https://github.com/google/benchmark
35- GIT_TAG
36- master)
33+ GIT_REPOSITORY
34+ https://github.com/google/benchmark
35+ GIT_TAG
36+ master)
3737
3838fetchcontent_getproperties(googletest)
3939if (BUILD_TESTING)
@@ -83,4 +83,4 @@ if(NOT benchmark_POPULATED)
8383 set (BENCHMARK_ENABLE_GTEST_TESTS OFF CACHE BOOL "Enable building the unit tests which depend on gtest" FORCE)
8484 fetchcontent_populate(benchmark)
8585 add_subdirectory (${benchmark_SOURCE_DIR} ${benchmark_BINARY_DIR} EXCLUDE_FROM_ALL )
86- endif ()
86+ endif ()
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ int main(int argc, char **argv) {
5151 }
5252
5353 // Register the OpenCensus gRPC plugin to enable stats and tracing in gRPC.
54- grpc ::RegisterOpenCensusPlugin ();
54+ grpc_impl ::RegisterOpenCensusPlugin ();
5555
5656 // Register exporters for Stackdriver.
5757 RegisterStackdriverExporters ();
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class HelloServiceImpl final : public HelloService::Service {
7878 grpc::Status SayHello (grpc::ServerContext *context,
7979 const HelloRequest *request,
8080 HelloReply *reply) override {
81- opencensus::trace::Span span = grpc ::GetSpanFromServerContext (context);
81+ opencensus::trace::Span span = grpc_impl ::GetSpanFromServerContext (context);
8282 span.AddAttribute (" my_attribute" , " red" );
8383 span.AddAnnotation (
8484 " Constructing greeting." ,
@@ -119,10 +119,10 @@ int main(int argc, char **argv) {
119119 }
120120
121121 // Register the OpenCensus gRPC plugin to enable stats and tracing in gRPC.
122- grpc ::RegisterOpenCensusPlugin ();
122+ grpc_impl ::RegisterOpenCensusPlugin ();
123123
124124 // Register the gRPC views (latency, error count, etc).
125- grpc ::RegisterOpenCensusViewsForExport ();
125+ grpc_impl ::RegisterOpenCensusViewsForExport ();
126126
127127 // Register exporters for Stackdriver.
128128 RegisterStackdriverExporters ();
Original file line number Diff line number Diff line change 4242fi
4343if which cmake-format > /dev/null; then
4444 echo " Running cmake-format $( cmake-format --version 2>&1 ) ."
45- cmake-format -i $( $FIND -name ' *CMakeLists.txt' -print -o \
45+ cmake-format -i $( $FIND -name FetchContent.cmake -prune -o \
46+ -name ' *CMakeLists.txt' -print -o \
4647 -name ' *.cmake' -print)
4748else
4849 echo " Can't find cmake-format. It can be installed with:"
You can’t perform that action at this time.
0 commit comments