Skip to content

Commit

Permalink
fix grpc opencensus stats integration
Browse files Browse the repository at this point in the history
- upgrade opencensus-java packages to the latest (0.22.1)
- add opencensus-impl and opencensus-impl-core
  • Loading branch information
mackenziestarr committed Jun 3, 2019
1 parent 7ffc700 commit 3a27b63
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
2 changes: 2 additions & 0 deletions scala_proto/default_dep_sets.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ DEFAULT_SCALAPB_GRPC_DEPS = [
"//external:io_bazel_rules_scala/dependency/proto/grpc_context",
"//external:io_bazel_rules_scala/dependency/proto/guava",
"//external:io_bazel_rules_scala/dependency/proto/opencensus_api",
"//external:io_bazel_rules_scala/dependency/proto/opencensus_impl",
"//external:io_bazel_rules_scala/dependency/proto/opencensus_impl_core",
"//external:io_bazel_rules_scala/dependency/proto/opencensus_contrib_grpc_metrics",
"//external:io_bazel_rules_scala/dependency/proto/google_instrumentation",
"//external:io_bazel_rules_scala/dependency/proto/netty_codec",
Expand Down
34 changes: 30 additions & 4 deletions scala_proto/private/scala_proto_default_repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ def scala_proto_default_repositories(

_scala_maven_import_external(
name = "scala_proto_rules_opencensus_api",
artifact = "io.opencensus:opencensus-api:0.18.0",
jar_sha256 = "45421ffe95271aba94686ed8d4c5070fe77dc2ff0b922688097f0dd40f1931b1",
artifact = "io.opencensus:opencensus-api:0.22.1",
jar_sha256 = "62a0503ee81856ba66e3cde65dee3132facb723a4fa5191609c84ce4cad36127",
licenses = ["notice"],
server_urls = maven_servers,
)
Expand All @@ -381,10 +381,36 @@ def scala_proto_default_repositories(
actual = "@scala_proto_rules_opencensus_api//jar",
)

_scala_maven_import_external(
name = "scala_proto_rules_opencensus_impl",
artifact = "io.opencensus:opencensus-impl:0.22.1",
jar_sha256 = "9e8b209da08d1f5db2b355e781b9b969b2e0dab934cc806e33f1ab3baed4f25a",
licenses = ["notice"],
server_urls = maven_servers,
)

native.bind(
name = "io_bazel_rules_scala/dependency/proto/opencensus_impl",
actual = "@scala_proto_rules_opencensus_impl//jar",
)

_scala_maven_import_external(
name = "scala_proto_rules_opencensus_impl_core",
artifact = "io.opencensus:opencensus-impl-core:0.22.1",
jar_sha256 = "04607d100e34bacdb38f93c571c5b7c642a1a6d873191e25d49899668514db68",
licenses = ["notice"],
server_urls = maven_servers,
)

native.bind(
name = "io_bazel_rules_scala/dependency/proto/opencensus_impl_core",
actual = "@scala_proto_rules_opencensus_impl_core//jar",
)

_scala_maven_import_external(
name = "scala_proto_rules_opencensus_contrib_grpc_metrics",
artifact = "io.opencensus:opencensus-contrib-grpc-metrics:0.18.0",
jar_sha256 = "1f90585e777b1e0493dbf22e678303369a8d5b7c750b4eda070a34ca99271607",
artifact = "io.opencensus:opencensus-contrib-grpc-metrics:0.22.1",
jar_sha256 = "3f6f4d5bd332c516282583a01a7c940702608a49ed6e62eb87ef3b1d320d144b",
licenses = ["notice"],
server_urls = maven_servers,
)
Expand Down

0 comments on commit 3a27b63

Please sign in to comment.