-
Notifications
You must be signed in to change notification settings - Fork 369
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
Undefined method `update' for #<Datadog::RateSampler>. #949
Comments
Thanks for the report @BabyGroot We recently released a totally new I've not seen this issue yet; can you provide any more details that'd help me reproduce it? |
Looking at the code, @default_sampler = if default_sampler
default_sampler
elsif default_sample_rate
# We want to allow 0.0 to drop all traces, but \RateSampler
# considers 0.0 an invalid rate and falls back to 100% sampling.
#
# We address that here by not setting the rate in the constructor,
# but using the setter method.
#
# We don't want to make this change directly to \RateSampler
# because it breaks its current contract to existing users.
Datadog::RateSampler.new.tap { |s| s.sample_rate = default_sample_rate }
else
RateByServiceSampler.new(1.0, env: -> { Datadog.tracer.tags[:env] })
end @BabyGroot in your application, have you set If this is the cause, then we should change |
@BabyGroot I opened a PR that addresses the |
@delner thanks so much for the info!
And in our docker compose files, we set an Environment variable:
|
I can prioritise this, will have a look at your PR. Thanks! |
Should be resolved with #950. Thanks! |
I have seen quite a lot of log level errors popping up in our application with the following message:
I went through the code in this repo and can confirm the rescue block but I couldn't determine why dd_trace was throwing an undefined method
update
for a RateSampler instance.Is this a known issue?
The text was updated successfully, but these errors were encountered: