BUILD 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "breaker.go",
  11. "collector.go",
  12. "detect.go",
  13. "operation_name.go",
  14. "process.go",
  15. ],
  16. importpath = "go-common/app/service/main/dapper/collector",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//app/service/main/dapper/conf:go_default_library",
  21. "//app/service/main/dapper/dao:go_default_library",
  22. "//app/service/main/dapper/model:go_default_library",
  23. "//app/service/main/dapper/pkg/batchwrite:go_default_library",
  24. "//app/service/main/dapper/pkg/collect:go_default_library",
  25. "//app/service/main/dapper/pkg/collect/kafkacollect:go_default_library",
  26. "//app/service/main/dapper/pkg/collect/tcpcollect:go_default_library",
  27. "//app/service/main/dapper/pkg/pointwrite:go_default_library",
  28. "//library/log:go_default_library",
  29. "//library/net/http/blademaster:go_default_library",
  30. ],
  31. )
  32. filegroup(
  33. name = "package-srcs",
  34. srcs = glob(["**"]),
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:private"],
  37. )
  38. filegroup(
  39. name = "all-srcs",
  40. srcs = [":package-srcs"],
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. )
  44. go_test(
  45. name = "go_default_test",
  46. srcs = [
  47. "breaker_test.go",
  48. "collector_test.go",
  49. "detect_test.go",
  50. "operation_name_test.go",
  51. ],
  52. embed = [":go_default_library"],
  53. tags = ["automanaged"],
  54. deps = [
  55. "//app/service/main/dapper/model:go_default_library",
  56. "//library/net/trace/proto:go_default_library",
  57. ],
  58. )