feat(internal/appsec): activation metric and config key#3959
Conversation
Signed-off-by: Eliott Bouhana <[email protected]>
BenchmarksBenchmark execution time: 2025-09-10 14:49:31 Comparing candidate commit f8ed3c7 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 24 metrics, 0 unstable metrics. |
| // Even when DD_APPSEC_ENABLED is an empty string or unset, an error can be returned here | ||
| log.Debug("appsec: could not determine the AppSec enablement mode from DD_APPSEC_ENABLED: %s", err.Error()) | ||
| } |
There was a problem hiding this comment.
This is where an error of the style: "value "" is not a boolean" was reported, which made it so that we never registered RC products for remote activation
Signed-off-by: Eliott Bouhana <[email protected]>
Signed-off-by: Eliott Bouhana <[email protected]>
Signed-off-by: Eliott Bouhana <[email protected]>
|
/merge |
|
View all feedbacks in Devflow UI.
This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
devflow unqueued this merge request: It did not become mergeable within the expected time |
What does this PR do?
This PR adds the
DD_APPSEC_ENABLEDconfiguration that was supposed to already be there but was removed by stableconfig APM work. It also adds theappsec.enabledtelemetyr metric to also report the value of appsec being enabled or not. This PR ALSO fixes a bug that stableconfig introduced by returning an error even when the env var is not set which made us branch out of appsec.Start too early. And since telemetry logs are dropped backend side we could not have find out earlier.System-tests run: https://github.com/DataDog/dd-trace-go/actions/runs/17610780213
Motivation
Better data on appsec enablement and how it was enabled.
Reviewer's Checklist
./scripts/lint.shlocally.Unsure? Have a question? Request a review!