Skip to content

Commit 2f51605

Browse files
committed
Make smart adaptive sampling injectable
1 parent acd0f49 commit 2f51605

196 files changed

Lines changed: 683 additions & 12 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmd/agent/subcommands/run/command.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ import (
186186
commonsettings "github.com/DataDog/datadog-agent/pkg/config/settings"
187187
configUtils "github.com/DataDog/datadog-agent/pkg/config/utils"
188188
"github.com/DataDog/datadog-agent/pkg/jmxfetch"
189-
smartadaptivesamplingfx "github.com/DataDog/datadog-agent/comp/logs/smartadaptivesampling/fx"
190189
proccontainers "github.com/DataDog/datadog-agent/pkg/process/util/containers"
191190
procmgrcoat "github.com/DataDog/datadog-agent/pkg/procmgr/coat"
192191
hostSbom "github.com/DataDog/datadog-agent/pkg/sbom/collectors/host"
@@ -520,7 +519,6 @@ func getSharedFxOption() fx.Option {
520519
logssourcefx.Module(),
521520
recordernoopfx.Module(),
522521
reporterfx.Module(),
523-
smartadaptivesamplingfx.Module(),
524522
langDetectionClimpl.Module(),
525523
metadata.Bundle(),
526524
orchestratorForwarderFx.Module(orchestratordef.NewDefaultParams()),

comp/anomalydetection/config/go.mod

Lines changed: 263 additions & 0 deletions
Large diffs are not rendered by default.

comp/anomalydetection/config/go.sum

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

comp/anomalydetection/observer/def/go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ require github.com/DataDog/datadog-agent/comp/anomalydetection/severityevents/de
77
// This section was automatically added by 'dda inv modules.add-all-replace' command, do not edit manually
88

99
replace (
10+
github.com/DataDog/datadog-agent/comp/anomalydetection/config => ../../../../comp/anomalydetection/config
1011
github.com/DataDog/datadog-agent/comp/anomalydetection/recorder/def => ../../../../comp/anomalydetection/recorder/def
1112
github.com/DataDog/datadog-agent/comp/anomalydetection/severityevents/def => ../../../../comp/anomalydetection/severityevents/def
1213
github.com/DataDog/datadog-agent/comp/api/api/def => ../../../../comp/api/api/def

comp/anomalydetection/recorder/def/go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ require github.com/DataDog/datadog-agent/comp/anomalydetection/severityevents/de
99
// This section was automatically added by 'dda inv modules.add-all-replace' command, do not edit manually
1010

1111
replace (
12+
github.com/DataDog/datadog-agent/comp/anomalydetection/config => ../../../../comp/anomalydetection/config
1213
github.com/DataDog/datadog-agent/comp/anomalydetection/observer/def => ../../../../comp/anomalydetection/observer/def
1314
github.com/DataDog/datadog-agent/comp/anomalydetection/severityevents/def => ../../../../comp/anomalydetection/severityevents/def
1415
github.com/DataDog/datadog-agent/comp/api/api/def => ../../../../comp/api/api/def

comp/anomalydetection/severityevents/def/go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go 1.26.0
55
// This section was automatically added by 'dda inv modules.add-all-replace' command, do not edit manually
66

77
replace (
8+
github.com/DataDog/datadog-agent/comp/anomalydetection/config => ../../../../comp/anomalydetection/config
89
github.com/DataDog/datadog-agent/comp/anomalydetection/observer/def => ../../../../comp/anomalydetection/observer/def
910
github.com/DataDog/datadog-agent/comp/anomalydetection/recorder/def => ../../../../comp/anomalydetection/recorder/def
1011
github.com/DataDog/datadog-agent/comp/api/api/def => ../../../../comp/api/api/def

comp/api/api/def/go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ require (
1717
// This section was automatically added by 'dda inv modules.add-all-replace' command, do not edit manually
1818

1919
replace (
20+
github.com/DataDog/datadog-agent/comp/anomalydetection/config => ../../../../comp/anomalydetection/config
2021
github.com/DataDog/datadog-agent/comp/anomalydetection/observer/def => ../../../../comp/anomalydetection/observer/def
2122
github.com/DataDog/datadog-agent/comp/anomalydetection/recorder/def => ../../../../comp/anomalydetection/recorder/def
2223
github.com/DataDog/datadog-agent/comp/anomalydetection/severityevents/def => ../../../../comp/anomalydetection/severityevents/def

comp/core/agenttelemetry/def/go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ require (
2828
// This section was automatically added by 'dda inv modules.add-all-replace' command, do not edit manually
2929

3030
replace (
31+
github.com/DataDog/datadog-agent/comp/anomalydetection/config => ../../../../comp/anomalydetection/config
3132
github.com/DataDog/datadog-agent/comp/anomalydetection/observer/def => ../../../../comp/anomalydetection/observer/def
3233
github.com/DataDog/datadog-agent/comp/anomalydetection/recorder/def => ../../../../comp/anomalydetection/recorder/def
3334
github.com/DataDog/datadog-agent/comp/anomalydetection/severityevents/def => ../../../../comp/anomalydetection/severityevents/def

comp/core/agenttelemetry/fx/go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ require (
106106
// This section was automatically added by 'dda inv modules.add-all-replace' command, do not edit manually
107107

108108
replace (
109+
github.com/DataDog/datadog-agent/comp/anomalydetection/config => ../../../../comp/anomalydetection/config
109110
github.com/DataDog/datadog-agent/comp/anomalydetection/observer/def => ../../../../comp/anomalydetection/observer/def
110111
github.com/DataDog/datadog-agent/comp/anomalydetection/recorder/def => ../../../../comp/anomalydetection/recorder/def
111112
github.com/DataDog/datadog-agent/comp/anomalydetection/severityevents/def => ../../../../comp/anomalydetection/severityevents/def

comp/core/agenttelemetry/impl/go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ require (
110110
// This section was automatically added by 'dda inv modules.add-all-replace' command, do not edit manually
111111

112112
replace (
113+
github.com/DataDog/datadog-agent/comp/anomalydetection/config => ../../../../comp/anomalydetection/config
113114
github.com/DataDog/datadog-agent/comp/anomalydetection/observer/def => ../../../../comp/anomalydetection/observer/def
114115
github.com/DataDog/datadog-agent/comp/anomalydetection/recorder/def => ../../../../comp/anomalydetection/recorder/def
115116
github.com/DataDog/datadog-agent/comp/anomalydetection/severityevents/def => ../../../../comp/anomalydetection/severityevents/def

0 commit comments

Comments
 (0)