Skip to content

[BUG]: resource-based sampling rate does not work as expected using admission.datadoghq.com #6066

@mark-liner

Description

@mark-liner

Tracer Version(s)

5.49.1 & 5.54.0

Node.js Version(s)

18

Bug Report

Image

Hi datadog team, we're using JS dd-trace library (admission.datadoghq.com/js-lib.version: v5.54.0) injected inside express.js server with annotation using DatadogAgent CRD in k8s environment.
We are trying to use remote configuration with resource-based sampling to filter out some resources when ingesting. The 'all other resources' sampling rate seems to work, but when I set the resource name and sampling rate like below image, the sampling rate does not applies to the resources. It just follows 'all other resources' sampling rate. I also tried with local configuration but it does not work either. I also tested on other next.js server and it didn't work either.
We use other servers with java dd-trace library and python dd-trace library and it seems to work fine, so I think js dd-library seems to have the problem.

Reproduction Code

No response

Error Logs

No response

Tracer Config

No response

Operating System

No response

Bundling

No Bundling

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions