[BUG]: resource-based sampling rate does not work as expected using admission.datadoghq.com
Tracer Version(s)
5.49.1 & 5.54.0
Node.js Version(s)
18
Bug Report
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
@mark-liner could you please open an issue with our support? We can not provide support through github and it would therefore not be looked at anytime soon.
https://www.datadoghq.com/support/