Skip to content

Commit 537f04d

Browse files
CelianRclaude
andcommitted
Wire smart adaptive sampling into the logs bundle
Registers smartadaptivesamplingfx.Module() in comp/logs/bundle.go so the component activates once logs_config.experimental_adaptive_sampling.smart_severity_profiles.enabled is set. README/CODEOWNERS regenerated via dda inv lint-components --fix. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent f23b186 commit 537f04d

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@
415415
/comp/forwarder/eventplatform @DataDog/agent-log-pipelines
416416
/comp/forwarder/eventplatformreceiver @DataDog/agent-log-pipelines
417417
/comp/forwarder/orchestrator @DataDog/kubernetes-experiences
418+
/comp/logs/smartadaptivesampling @DataDog/agent-log-pipelines @DataDog/q-branch
418419
/comp/metadata/clusteragent @DataDog/container-platform
419420
/comp/metadata/clusterchecks @DataDog/container-platform
420421
/comp/metadata/haagent @DataDog/network-device-monitoring-core

comp/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,12 @@ send logs.
412412

413413
Package kubehealth provides a dependency-injectible health object for kubernetes liveness checks
414414

415+
### [comp/logs/smartadaptivesampling](https://pkg.go.dev/github.com/DataDog/datadog-agent/comp/logs/smartadaptivesampling)
416+
417+
*Datadog Team*: agent-log-pipelines q-branch
418+
419+
Package smartadaptivesampling defines the smart adaptive sampling component.
420+
415421
### [comp/logs/streamlogs](https://pkg.go.dev/github.com/DataDog/datadog-agent/comp/logs/streamlogs)
416422

417423
Package streamlogs is metadata provider for streamlogs

comp/logs/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ go_library(
1414
"//comp/logs/agent/mock",
1515
"//comp/logs/auditor/fx",
1616
"//comp/logs/auditor/mock",
17+
"//comp/logs/smartadaptivesampling/fx",
1718
"//comp/logs/streamlogs/fx",
1819
"//pkg/util/fxutil",
1920
],

comp/logs/bundle.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
kubehealthfx "github.com/DataDog/datadog-agent/comp/logs-library/kubehealth/fx"
1111
agentfx "github.com/DataDog/datadog-agent/comp/logs/agent/fx"
1212
auditorfx "github.com/DataDog/datadog-agent/comp/logs/auditor/fx"
13+
smartadaptivesamplingfx "github.com/DataDog/datadog-agent/comp/logs/smartadaptivesampling/fx"
1314
streamlogs "github.com/DataDog/datadog-agent/comp/logs/streamlogs/fx"
1415
"github.com/DataDog/datadog-agent/pkg/util/fxutil"
1516
)
@@ -21,6 +22,7 @@ func Bundle() fxutil.BundleOptions {
2122
return fxutil.Bundle(
2223
kubehealthfx.Module(),
2324
agentfx.Module(),
25+
smartadaptivesamplingfx.Module(),
2426
streamlogs.Module(),
2527
auditorfx.Module(),
2628
)

0 commit comments

Comments
 (0)