We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We are running the beta gem:
beta
deployment@worker1:~/our-app/current$ cat Gemfile.lock |grep appsignal appsignal (0.12.beta.31) appsignal (~> 0.12.beta)
It's been working great so far.
Unfortunately, when we wrap our rake tasks in Rake.appsignal_exception_handling, this exception gets throw:
rake
Rake.appsignal_exception_handling
NoMethodError: undefined method `complete!' for #<Appsignal::Transaction:0x00000010452148> ~our-app/releases/20150909145922/lib/rake_helper.rb:19:in `appsignal_exception_handling' ...
Is there a method missing in the beta gem that used to be in the old? What do we need to do to fix?
The text was updated successfully, but these errors were encountered:
Additionally, here is the body of our wrapper:
module RakeHelper def self.appsignal_exception_handling(type, classname, method) Appsignal::Transaction.create(SecureRandom.uuid, ENV.to_hash) begin ActiveSupport::Notifications.instrument( "perform_job.#{type}", :class => "#{type.titleize}::#{classname.titleize.gsub(' ','')}", :method => "#{method}", ) do yield end rescue Exception => exception unless Appsignal.is_ignored_exception?(exception) Appsignal::Transaction.current.add_exception(exception) end raise exception ensure Appsignal::Transaction.current.complete! end end end
Sorry, something went wrong.
Thanks for the report. We're going to put this method back in place in the next beta version.
👍
No branches or pull requests
We are running the
beta
gem:It's been working great so far.
Unfortunately, when we wrap our
rake
tasks inRake.appsignal_exception_handling
, this exception gets throw:Is there a method missing in the beta gem that used to be in the old? What do we need to do to fix?
The text was updated successfully, but these errors were encountered: