-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: appsec-node serverless integration test failure (#20798)
Somehow this is not registering a trace anymore. For some reason I fail to understand, when instrumentation telemetry is enabled (which is te default behavior when `DD_SERVERLESS_APPSEC_ENABLED` is `true`-ish), the `appsec-node` function no longer produces a trace in a way that is captured by the `recorder-extension`. I have however been able to validate that the trace is actually still created (in a run with `DD_LOG_LEVEL=debug`). In order to fix this, explicitly disabled instrumentation telemetry so the test continues to work correctly. The actual interaction needs to be investigated later/separately, as it is not well understood today why either the Node tracer library or the recorder extension behaves differently in this particular scenario. --- Additionally, added extra logging into the recorder extension (as I was attempting to understand the issue), and improved the log normalization to also neutralize the AWS account ID. --- Finally, using feature environments to reduce the amount of deployed functions (in the serverless stacks) depending on the test suite being run.
- Loading branch information
1 parent
d1453b1
commit f432302
Showing
30 changed files
with
1,289 additions
and
1,211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.