Skip to content

feat: initialize SCA reachability in the Lambda wrapper - #880

Draft
florentinl wants to merge 3 commits into
mainfrom
flabel/sca-startup
Draft

florentinl wants to merge 3 commits into
mainfrom
flabel/sca-startup

Conversation

@florentinl

@florentinl florentinl commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Initialize SCA before user handler imports when enabled, and retain its modules in packaged layers. Requires dd-trace-py#21366.

Testing Guidelines

All 40 wrapper tests pass. SCA has the same enabled-startup and import-failure coverage as other products. The five system tests pass across all five Lambda HTTP variants; packaging trim and formatting checks pass.

gh-worker-dd-mergequeue-cf854d Bot pushed a commit to DataDog/dd-trace-py that referenced this pull request Nov 9, 2026
## Description

Enable SCA reachability in AWS Lambda. Requires the [Lambda startup change](DataDog/datadog-lambda-python#880); [system-tests coverage](DataDog/system-tests#8224) is separate.

## Testing

127 SCA tests, 12 regular/Lambda Flask telemetry cases, and five Lambda reachability checks pass on Colima. The Lambda reachability case fails with the old exclusion restored. Lint passes.

## Risks

Lambda cold-start overhead is unmeasured.


Co-authored-by: florentin.labelle <florentin.labelle@datadoghq.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant