load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "go_default_library",
    srcs = [
        "handlers.go",
        "stats.go",
    ],
    importpath = "google.golang.org/grpc/stats",
    visibility = ["//visibility:public"],
    deps = ["@org_golang_x_net//context:go_default_library"],
)

go_test(
    name = "go_default_test",
    srcs = ["stats_test.go"],
    embed = [":go_default_library"],
    deps = [
        "//:go_default_library",
        "//metadata:go_default_library",
        "//stats/grpc_testing:go_default_library",
        "//status:go_default_library",
        "@com_github_golang_protobuf//proto:go_default_library",
        "@org_golang_x_net//context:go_default_library",
    ],
)
