-
Notifications
You must be signed in to change notification settings - Fork 381
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
NoMethodError: undefined method `>=' for nil:NilClass in 0.33.0 #964
Comments
Hello, I've managed to narrow it down to this specific tracer:
If we stop using the |
Turns out we do not have the rest_client gem in our project anymore and forgot to remove the configuration option in DataDog. That's most likely what's causing the issue. However I would expect the client not to blow up but just ignore that configuration option, or throw a warning if the Hope that helps. |
We are running into the same error, but with AWS. In our DataDog config we do have
|
The common thread between both of these errors is that the class Integration
include Contrib::Integration
register_as :rest_client
def self.version
Gem.loaded_specs['rest-client'] && Gem.loaded_specs['rest-client'].version
end
# ...
def self.compatible?
super && version >= Gem::Version.new('1.8')
end
end I suspect Either way, even if you activated an integration that wasn't available, it shouldn't raise an error like this... something we'll address. |
I'm working on a fix for this, and adding additional unit test coverage to prevent any errors like this again. My current expectation is to have a patch for this released early next week. |
Okay made a PR which I think should fix the problem: #966 @roccoblues @brafales @javierjulio can you test out the branch and confirm it fixes the issue for you? |
Hi. Thanks for fixing so quickly. It does fix it for |
Okay, great, we'll try to get a bugfix released soon. Thanks for helping figure this one out! |
Looks like 32f512a broke our deployment. Version 0.32.0 works fine. This is with rails 6.0.2.1 and ruby 2.6.5. Let me know if you need more info.
The text was updated successfully, but these errors were encountered: