class AppInsights::ExceptionHandling
Public Class Methods
new(app)
click to toggle source
# File lib/appinsights/middlewares/exception_handling.rb, line 5 def initialize(app) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/appinsights/middlewares/exception_handling.rb, line 9 def call(env) @app.call env rescue Exception => exception tc = AppInsights::Context.telemetry_client tc.track_exception exception raise exception end