Skip to content

Commit

Permalink
Enable bazel build for metrics proto files (#1489)
Browse files Browse the repository at this point in the history
* enable bazel build for metrics proto

* error
  • Loading branch information
lalitb authored Jul 12, 2022
1 parent 235c90e commit 801ebba
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions bazel/opentelemetry_proto.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,43 @@ cc_grpc_library(
grpc_only = True,
deps = [":logs_service_proto_cc"],
)

proto_library(
name = "metrics_proto",
srcs = [
"opentelemetry/proto/metrics/v1/metrics.proto",
],
deps = [
":common_proto",
":resource_proto",
],
)

cc_proto_library(
name = "metrics_proto_cc",
deps = [":metrics_proto"],
)

proto_library(
name = "metrics_service_proto",
srcs = [
"opentelemetry/proto/collector/metrics/v1/metrics_service.proto",
],
deps = [
":metrics_proto",
],
)

cc_proto_library(
name = "metrics_service_proto_cc",
deps = [":metrics_service_proto"],
)

cc_grpc_library(
name = "metrics_service_grpc_cc",
srcs = [":metrics_service_proto"],
generate_mocks = True,
grpc_only = True,
deps = [":metrics_service_proto_cc"],
)

1 comment on commit 801ebba

@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: 801ebba Previous: 235c90e Ratio
BM_BaselineBuffer/1 4451287.031173706 ns/iter 714471.1017608643 ns/iter 6.23
BM_BaselineBuffer/2 9529252.052307129 ns/iter 839046.4782714844 ns/iter 11.36
BM_LockFreeBuffer/1 2820494.6517944336 ns/iter 521501.77146789583 ns/iter 5.41
BM_LockFreeBuffer/2 2961655.3850371903 ns/iter 640201.3301849365 ns/iter 4.63

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

Please sign in to comment.