Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample rate feature is not working (at all) #9064

Open
organic1337 opened this issue Apr 22, 2024 · 1 comment
Open

Sample rate feature is not working (at all) #9064

organic1337 opened this issue Apr 22, 2024 · 1 comment

Comments

@organic1337
Copy link

Summary of problem

After a lot of debugging I found that sample rate feature does not work for this implementation. I discovered it while trying to set sample rate to 0.0 and still received traces.

Which version of dd-trace-py are you using?

2.8.1

Which version of pip are you using?

24.0

How can we reproduce your problem?

What I did was setting installing ddtrace in my local environment, then set the DD_TRACE_SAMPLE_RATE env variable to 0, and also use env vars for configuring dd agent host.

Run something that usually sends a trace and see that races will appear on dd even if sample rate is zero.

What is the result that you get?

I get traces on dd even though they should not appear.

What is the result that you expected?

No traces on dd when sample rate is zero.

@emmettbutler
Copy link
Collaborator

Thanks for the report, @organic1337. The sampling configuration on this library is complex and it's possible that there are bugs.

cc @ZStriker19 - I'm looking through the existing sampling integration tests and not seeing one that sets the sample rate to zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants