Skip to content

feat: dd-trace 5.0 to 6.0 - rename plugin whitelist and blacklist options #3

@mohab-sameh

Description

@mohab-sameh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions