Summary
Rename removed Datadog plugin option aliases to their canonical names.
Detection Criteria
Detect whitelist and blacklist properties in configs for the http,
ioredis, iovalkey, and redis plugins reached through a local dd-trace
binding or direct require("dd-trace") call. Supported static shapes:
tracer.use("<plugin>", { ... })
tracer.init({ plugins: { <plugin>: { ... } } })
Transformation Logic
Rename whitelist to allowlist and blacklist to blocklist.
Before / After Example
tracer.use("http", { whitelist: ["/health"], blacklist: [/admin/] });
tracer.use("http", { allowlist: ["/health"], blocklist: [/admin/] });
Notes / Edge Cases
Do not rename generic object properties outside Datadog plugin config context.
Summary
Rename removed Datadog plugin option aliases to their canonical names.
Detection Criteria
Detect
whitelistandblacklistproperties in configs for thehttp,ioredis,iovalkey, andredisplugins reached through a localdd-tracebinding or direct
require("dd-trace")call. Supported static shapes:tracer.use("<plugin>", { ... })tracer.init({ plugins: { <plugin>: { ... } } })Transformation Logic
Rename
whitelisttoallowlistandblacklisttoblocklist.Before / After Example
Notes / Edge Cases
Do not rename generic object properties outside Datadog plugin config context.