Slide 24
Slide 24 text
ActiveSupport::Notifications
ActiveSupport::Notifications.instrument("widgets.manufacture", widget_id: widget.id) do
# Run the code
end
ActiveSupport::Notifications.instrument("widgets.manufacture_failed", widget_id: widget.id)
ActiveSupport::Notifications.subscribe("widgets.manufacture") do |name, start, finish, id, payload|
push_event_to_monitoring(name, start, finish, id, payload)
end