cloudfuji / airbrake_user_attributes Goto Github PK
View Code? Open in Web Editor NEWIf available, add user attributes to the airbrake exception report
If available, add user attributes to the airbrake exception report
Now that the Airbrake gem itself supports sending information about the logged in user, is this gem still necessary?
https://github.com/airbrake/airbrake/wiki/Sending-current-user-information
What would be necessary to make Errbit work with the information sent by the regular Airbrake gem? (probably a question to ask in the Errbit repo)
Airbrake.notify(Exception.new('oups'))
** [Airbrake] [Airbrake::Sender#send_to_airbrake] Cannot send notification. Error: ArgumentError - wrong number of arguments (0 for 1)
Backtrace:
/Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake_user_attributes-0.1.6/lib/airbrake_overrides/notice.rb:34:in `method'
/Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake_user_attributes-0.1.6/lib/airbrake_overrides/notice.rb:34:in `block (4 levels) in to_xml'
/Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake_user_attributes-0.1.6/lib/airbrake_overrides/notice.rb:31:in `each'
/Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake_user_attributes-0.1.6/lib/airbrake_overrides/notice.rb:31:in `block (3 levels) in to_xml'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:175:in `call'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:175:in `_nested_structures'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:68:in `tag!'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:93:in `method_missing'
/Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake_user_attributes-0.1.6/lib/airbrake_overrides/notice.rb:30:in `block (2 levels) in to_xml'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:175:in `call'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:175:in `_nested_structures'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:68:in `tag!'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:93:in `method_missing'
/Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake_user_attributes-0.1.6/lib/airbrake_overrides/notice.rb:27:in `block in to_xml'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:175:in `call'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:175:in `_nested_structures'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:68:in `tag!'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:93:in `method_missing'
/Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake_user_attributes-0.1.6/lib/airbrake_overrides/notice.rb:20:in `to_xml'
/Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake-3.1.17/lib/airbrake/sender.rb:115:in `prepare_notice'
/Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake-3.1.17/lib/airbrake/sender.rb:50:in `send_to_airbrake'
/Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake-3.1.17/lib/airbrake.rb:161:in `send_notice'
/Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake-3.1.17/lib/airbrake.rb:126:in `notify'
(irb):2:in `irb_binding'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/workspace.rb:86:in `eval'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/workspace.rb:86:in `evaluate'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/context.rb:380:in `evaluate'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb.rb:492:in `block (2 levels) in eval_input'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb.rb:624:in `signal_status'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb.rb:489:in `block in eval_input'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/ruby-lex.rb:247:in `block (2 levels) in each_top_level_statement'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/ruby-lex.rb:233:in `loop'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/ruby-lex.rb:233:in `block in each_top_level_statement'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/ruby-lex.rb:232:in `catch'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/ruby-lex.rb:232:in `each_top_level_statement'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb.rb:488:in `eval_input'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb.rb:397:in `block in start'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb.rb:396:in `catch'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb.rb:396:in `start'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/railties-4.1.6/lib/rails/commands/console.rb:90:in `start'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/railties-4.1.6/lib/rails/commands/console.rb:9:in `start'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:69:in `console'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/railties-4.1.6/lib/rails/commands.rb:17:in `<top (required)>'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `block in require'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/Users/joel/Documents/WorkData/RubyWorkSpace/KnowledgeCorp/finalcloud/bin/rails:10:in `<top (required)>'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `load'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `block in load'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `load'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/commands/rails.rb:6:in `call'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/command_wrapper.rb:38:in `call'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/application.rb:180:in `block in serve'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/application.rb:153:in `fork'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/application.rb:153:in `serve'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/application.rb:128:in `block in run'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/application.rb:122:in `loop'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/application.rb:122:in `run'
/Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/application/boot.rb:18:in `<top (required)>'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
-e:1:in `<main>'
** [Airbrake] Environment Info: [Ruby: 2.1.3] [Rails: 4.1.6] [Env: development]
=> nil
There are cases where current_user is nil, and won't respond to #attributes. This causes an error in the error reporting, and no error is sent back at all - imagine an error when a user is signing up, current_user will be nil, and if there's an error in the sign-up flow you'll never see it.
Pretty much says it all- what license have you released this code under?
Mind updating the airbrake dependency to 3.1.4? Or maybe to ~> 3.0.9
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.