Module: TwirpRails::RavenAdapter
- Defined in:
- lib/twirp_rails/raven_adapter.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.attach(service) ⇒ Object
14 15 16 17 18 |
# File 'lib/twirp_rails/raven_adapter.rb', line 14 def self.attach(service) service.exception_raised do |e, _env| ::Raven.capture_exception e end end |
.install ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/twirp_rails/raven_adapter.rb', line 6 def self.install return unless defined?(::Raven) TwirpRails::Routes::Helper.on_create_service do |service| RavenAdapter.attach service end end |