Skip to content

Commit

Permalink
Merge branch 'main' into CI-1669
Browse files Browse the repository at this point in the history
  • Loading branch information
esigo authored Oct 24, 2022
2 parents ec9ecc2 + 5258563 commit 6d7bd5d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions examples/otlp/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,22 @@ cc_binary(
"//sdk/src/trace",
],
)

cc_binary(
name = "example_otlp_grpc_metrics",
srcs = [
"grpc_metric_main.cc",
],
tags = [
"examples",
"metrics",
"otlp",
],
deps = [
"//api",
"//examples/common/metrics_foo_library:common_metrics_foo_library",
"//exporters/otlp:otlp_grpc_exporter",
"//exporters/otlp:otlp_grpc_metric_exporter",
"//sdk/src/metrics",
],
)
2 changes: 2 additions & 0 deletions examples/otlp/grpc_metric_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,6 @@ int main(int argc, char *argv[])
histogram_example.join();
}
}
#else
int main() {}
#endif

0 comments on commit 6d7bd5d

Please sign in to comment.