Skip to content

Commit

Permalink
[process-agent] Fix Drop Check Payloads status (#15274)
Browse files Browse the repository at this point in the history
  • Loading branch information
just-chillin authored Jan 26, 2023
1 parent 9133902 commit ebd9929
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/process-agent/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ type Collector struct {
// Enables running realtime checks
runRealTime bool

// Drop payloads from specified checks
dropCheckPayloads []string

// Submits check payloads to datadog
submitter Submitter
}
Expand Down Expand Up @@ -240,7 +237,6 @@ func (l *Collector) run(exit chan struct{}) error {
}
}
updateEnabledChecks(checkNames)
updateDropCheckPayloads(l.dropCheckPayloads)
log.Infof("Starting process-agent with enabled checks=%v", checkNames)

go util.HandleSignals(exit)
Expand Down
1 change: 1 addition & 0 deletions cmd/process-agent/submitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func NewSubmitter(hostname string, enableRealtimeCallback func([]*model.Collecto
if len(dropCheckPayloads) > 0 {
log.Debugf("Dropping payloads from checks: %v", dropCheckPayloads)
}
updateDropCheckPayloads(dropCheckPayloads)

// Forwarder initialization
processAPIEndpoints, err := getAPIEndpoints()
Expand Down

0 comments on commit ebd9929

Please sign in to comment.