BUILD 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. package(default_visibility = ["//visibility:public"])
  7. filegroup(
  8. name = "package-srcs",
  9. srcs = glob(["**"]),
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:private"],
  12. )
  13. filegroup(
  14. name = "all-srcs",
  15. srcs = [
  16. ":package-srcs",
  17. "//library/net/trace/proto:all-srcs",
  18. ],
  19. tags = ["automanaged"],
  20. )
  21. go_library(
  22. name = "go_default_library",
  23. srcs = glob(
  24. ["*.go"],
  25. exclude = ["*_test.go"],
  26. ),
  27. importpath = "go-common/library/net/trace",
  28. tags = ["manual"],
  29. deps = [
  30. "//library/conf/dsn:go_default_library",
  31. "//library/conf/env:go_default_library",
  32. "//library/net/metadata:go_default_library",
  33. "//library/net/trace/proto:go_default_library",
  34. "//library/time:go_default_library",
  35. "//vendor/github.com/pkg/errors:go_default_library",
  36. "@com_github_golang_protobuf//proto:go_default_library",
  37. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  38. "@io_bazel_rules_go//proto/wkt:timestamp_go_proto",
  39. "@org_golang_google_grpc//metadata:go_default_library",
  40. ],
  41. )
  42. go_test(
  43. name = "go_default_test",
  44. srcs = [
  45. "config_test.go",
  46. "context_test.go",
  47. "dapper_test.go",
  48. "marshal_test.go",
  49. "report_test.go",
  50. "sample_test.go",
  51. "span_test.go",
  52. "tag_test.go",
  53. "util_test.go",
  54. ],
  55. embed = [":go_default_library"],
  56. rundir = ".",
  57. tags = ["automanaged"],
  58. deps = [
  59. "//vendor/github.com/pkg/errors:go_default_library",
  60. "//vendor/github.com/stretchr/testify/assert:go_default_library",
  61. "@org_golang_google_grpc//metadata:go_default_library",
  62. ],
  63. )