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

Commit 2343b3d

Browse files
authored
Merge branch 'master' into meastp_cmake_google_benchmark
2 parents 9b88f1e + 71fd6a7 commit 2343b3d

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

cmake/OpenCensusDeps.cmake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ fetchcontent_declare(prometheus
3030
GIT_TAG
3131
master)
3232
fetchcontent_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

3838
fetchcontent_getproperties(googletest)
3939
if(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()

examples/grpc/hello_client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

examples/grpc/hello_server.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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();

tools/format.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ else
4242
fi
4343
if 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)
4748
else
4849
echo "Can't find cmake-format. It can be installed with:"

0 commit comments

Comments
 (0)