Commit 041ef5b
committed
refactor(remote_config): move capability registration to feature modules
Move remote config capability and handler registration from central location
to feature-specific modules for better separation of concerns.
Changes:
- Create tracing/remote_config.js for APM_TRACING_* capabilities and handler
- Create openfeature/remote_config.js for FFE_FLAG_CONFIGURATION_RULES capability
- Remove remote_config/index.js wrapper, instantiate RemoteConfig directly in proxy
- Rename RemoteConfigManager class to RemoteConfig
- Rename remote_config/manager.js to remote_config/index.js
- Replace chai with node:assert/strict in remote_config tests
- Use real implementations in proxy tests instead of stubbing
This creates a consistent pattern where features own their remote config setup:
- Core APM tracing → tracing/remote_config.js (always enabled)
- OpenFeature → openfeature/remote_config.js (conditional)
- AppSec → appsec/remote_config.js (conditional)1 parent 05e2209 commit 041ef5b
File tree
12 files changed
+1645
-1507
lines changed- packages/dd-trace
- src
- appsec
- openfeature
- remote_config
- tracing
- test
- openfeature
- remote_config
- tracing
12 files changed
+1645
-1507
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
| 130 | + | |
130 | 131 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 132 | + | |
| 133 | + | |
139 | 134 | | |
140 | 135 | | |
141 | 136 | | |
| |||
165 | 160 | | |
166 | 161 | | |
167 | 162 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 163 | + | |
| 164 | + | |
176 | 165 | | |
177 | 166 | | |
178 | 167 | | |
| |||
0 commit comments