Skip to content

Commit

Permalink
trace-agent: provide the statsd module
Browse files Browse the repository at this point in the history
  • Loading branch information
iksaif committed Nov 23, 2023
1 parent 9c4a862 commit 37f9fee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/trace-agent/subcommands/run/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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()) }),
Expand Down

0 comments on commit 37f9fee

Please sign in to comment.