chore(components): remove usages of facet - #2321
Conversation
There was a problem hiding this comment.
More details
After removing only the Facet imports, derives, and field attributes, every affected runtime source matches the PR merge base exactly; Serde annotations, defaults, layouts, and runtime methods remain unchanged. The corresponding dependency closure is also fully removed.
📊 Validated against 10 scenarios · Open Bits AI session
🤖 Datadog Autotest · Commit 720bf9e · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest
720bf9e to
b710725
Compare
Binary Size Analysis (Agent Data Plane)Baseline: 0dee0a9 · Comparison: b710725 · diff ✅ Binary size difference within thresholdChanges by Module
Detailed Symbol Changes |
Regression Detector (Agent Data Plane)Run ID: Optimization Goals: ✅ No significant changes detectedFine details of change detection per experiment (5)Experiments configured
Bounds Checks: ✅ Passed (5)
ExplanationA change is flagged as a regression when |Δ mean %| > 5.00% in the regressing direction for its optimization goal AND SMP marks the experiment as a regression ( |
## Summary As stated in the PR title. Our original intent for using `facet` was to get around the limitations of `serde` in the context of using it to deal with Agent configuration. Now that we have the full configuration schema for the Agent, however, we can do much more up front at build time, almost entirely obviating the need for a hypothetical and bespoke configuration loading system based on `facet`. As such, we're removing the code. :) ## Change Type - [ ] Bug fix - [ ] New feature - [x] Non-functional (chore, refactoring, docs) - [ ] Performance ## How did you test this PR? Existing tests, lints, etc etc. ## References DADP-2 Co-authored-by: toby.lawrence <toby.lawrence@datadoghq.com> ca31d5f

Summary
As stated in the PR title.
Our original intent for using
facetwas to get around the limitations ofserdein the context of using it to deal with Agent configuration. Now that we have the full configuration schema for the Agent, however, we can do much more up front at build time, almost entirely obviating the need for a hypothetical and bespoke configuration loading system based onfacet.As such, we're removing the code. :)
Change Type
How did you test this PR?
Existing tests, lints, etc etc.
References
DADP-2