From 37f9fee2fa3248f537a8a7ae8668a48775b43a93 Mon Sep 17 00:00:00 2001 From: Corentin Chary Date: Thu, 23 Nov 2023 10:12:36 +0100 Subject: [PATCH] trace-agent: provide the statsd module --- cmd/trace-agent/subcommands/run/command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/trace-agent/subcommands/run/command.go b/cmd/trace-agent/subcommands/run/command.go index eeb896e88e36b..3ba935570f1d6 100644 --- a/cmd/trace-agent/subcommands/run/command.go +++ b/cmd/trace-agent/subcommands/run/command.go @@ -20,6 +20,7 @@ import ( "github.com/DataDog/datadog-agent/comp/core/secrets/secretsimpl" "github.com/DataDog/datadog-agent/comp/core/workloadmeta" "github.com/DataDog/datadog-agent/comp/core/workloadmeta/collectors" + "github.com/DataDog/datadog-agent/comp/dogstatsd/statsd" "github.com/DataDog/datadog-agent/comp/trace" "github.com/DataDog/datadog-agent/comp/trace/agent" "github.com/DataDog/datadog-agent/comp/trace/config" @@ -80,6 +81,7 @@ func runFx(ctx context.Context, cliParams *RunParams, defaultConfPath string) er InitHelper: common.GetWorkloadmetaInit(), }), workloadmeta.Module, + statsd.Module, fx.Invoke(func(_ config.Component) {}), // Required to avoid cyclic imports. fx.Provide(func(cfg config.Component) telemetry.TelemetryCollector { return telemetry.NewCollector(cfg.Object()) }),