@@ -5,6 +5,8 @@ go_library(
55 srcs = [
66 "agenttelemetry.go" ,
77 "config.go" ,
8+ "errortracking_sender.go" ,
9+ "logs_payload.go" ,
810 "runner.go" ,
911 "sender.go" ,
1012 "utils.go" ,
@@ -24,32 +26,41 @@ go_library(
2426 "//pkg/fleet/installer/telemetry" ,
2527 "//pkg/util/hostinfo" ,
2628 "//pkg/util/http" ,
29+ "//pkg/util/log/errortracking" ,
30+ "//pkg/util/log/setup" ,
2731 "//pkg/util/scrubber" ,
2832 "//pkg/version" ,
2933 "@com_github_datadog_zstd//:zstd" ,
3034 "@com_github_prometheus_client_model//go" ,
3135 "@com_github_robfig_cron_v3//:cron" ,
3236 "@in_yaml_go_yaml_v2//:yaml" ,
37+ "@org_uber_go_atomic//:atomic" ,
3338 ],
3439)
3540
3641go_test (
3742 name = "impl_test" ,
38- srcs = ["agenttelemetry_test.go" ],
43+ srcs = [
44+ "agenttelemetry_test.go" ,
45+ "errortracking_sender_test.go" ,
46+ ],
3947 embed = [":impl" ],
4048 gotags = ["test" ],
4149 deps = [
4250 "//comp/core/log/def" ,
4351 "//comp/core/log/mock" ,
4452 "//comp/core/telemetry/def" ,
4553 "//comp/core/telemetry/mock" ,
54+ "//comp/logs/agent/config" ,
4655 "//pkg/config/mock" ,
4756 "//pkg/util/fxutil" ,
4857 "//pkg/util/jsonquery" ,
58+ "//pkg/util/log/errortracking" ,
4959 "@com_github_datadog_zstd//:zstd" ,
5060 "@com_github_prometheus_client_model//go" ,
5161 "@com_github_stretchr_testify//assert" ,
5262 "@com_github_stretchr_testify//mock" ,
5363 "@com_github_stretchr_testify//require" ,
64+ "@org_uber_go_atomic//:atomic" ,
5465 ],
5566)
0 commit comments