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()) }),