fix(remote-config): support restored Node.js capability bits - #7917
Conversation
|
|
93a7f07 to
5ac37c0
Compare
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 2 Pipeline jobs failed
ℹ️ InfoNo other issues found (see more)🧪 All tests passed Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 1b3e5c5 | Docs | View more details | Give us feedback! |
BridgeAR
left a comment
There was a problem hiding this comment.
I do not think this is the right direction. Instead of handling it in the tracer, it should just be handled at the backend side where we receive the capabilities. That should mimic the existence of the older ones and we can keep everything as is.
|
@BridgeAR , responded on slack, summarizing here: Backend changes are not the right approach for the following reasons:
The plan is to restore the capability bits in dd-trace-js now, then move to FPD soon, before sdk_config's config list changes any further. |
Motivation
DataDog/dd-trace-js#10573 restores the legacy per-setting
APM_TRACING_*capability bits alongsideSDK_CONFIGURATION. Node.js v6.17.0 through v6.19.0 advertise onlySDK_CONFIGURATION, while v6.20.0 and later advertise both families but continue to consume onlysdk_config.System-tests previously treated the presence of any legacy bit as proof that a tracer consumed lib_config. This caused the dynamic-configuration parametric suite and debugger in-product enablement tests to send the wrong payload shape.
Changes
SDK_CONFIGURATIONto selectsdk_configfor Node.js 6.17.0 and later. Preserve the historical capability masks: 6.17.0–6.19.x advertise onlySDK_CONFIGURATION, while 6.20.0+ also advertise the restored per-setting bits.SDK_CONFIGURATIONplus the restored legacy bits on the 6.x release line from v6.20.0. Allow 7.0.0 prerelease main builds to advertise those extra bits without requiring them before dd-trace-js#10573 lands.Validation
Tested locally against the exact system_tests_binaries artifact produced by dd-trace-js#10573, reporting nodejs@7.0.0-pre.