|
|
|
@ -16,6 +16,7 @@ package(default_visibility = ["//visibility:public"]) |
|
|
|
|
|
|
|
|
|
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") |
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library") |
|
|
|
|
load("@com_google_protobuf//:protobuf.bzl", "py_proto_library") |
|
|
|
|
|
|
|
|
|
proto_library( |
|
|
|
|
name = "trace_proto", |
|
|
|
@ -69,6 +70,20 @@ go_proto_library( |
|
|
|
|
importpath = "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1", |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
py_proto_library( |
|
|
|
|
name = "trace_proto_py", |
|
|
|
|
srcs = ["trace.proto"], |
|
|
|
|
deps = [ |
|
|
|
|
"@com_google_protobuf//:protobuf_python", |
|
|
|
|
"//opencensus/proto/resource/v1:resource_proto_py", |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
py_proto_library( |
|
|
|
|
name = "trace_config_proto_py", |
|
|
|
|
srcs = ["trace_config.proto"], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
# This a workaround because `trace_proto_go` and `trace_config_proto_go` have |
|
|
|
|
# the same importpath, and so cause a compile issue if both are depended on |
|
|
|
|
# directly by another `go_proto_library` (such as `trace_service_proto_go`). |
|
|
|
|