Skip to content

Instantly share code, notes, and snippets.

View kalys's full-sized avatar

Kalys Osmonov kalys

View GitHub Profile
+class SomeController < ApplicationController
+
+ def do_something
+ Thread.current[:counter] = Thread.current[:counter].to_i + 1
+ if Thread.current[:counter] % 2 == 0
+ Airbrake.merge_context(some_key: 'bla bla')
+ else
+ raise StandardError, 'bla bla'
+ end
+