Skip to content

Commit

Permalink
Add otlp-grpc example bazel (#1708)
Browse files Browse the repository at this point in the history
  • Loading branch information
esigo committed Oct 24, 2022
1 parent 70777ef commit 5258563
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

1 comment on commit 5258563

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'OpenTelemetry-cpp sdk Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 5258563 Previous: 70777ef Ratio
BM_LockFreeBuffer/2 2478966.7677605287 ns/iter 1001394.9871063232 ns/iter 2.48

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.