class Airbrake::Rails::ActionControllerNotifySubscriber
Experimental RBS support (using type sampling data from the type_fusion project).
# sig/airbrake/rails/action_controller_notify_subscriber.rbs class Airbrake::Rails::ActionControllerNotifySubscriber def call: (*Array[String] args) -> untyped end
@since v8.0.0
performance data.
ActionControllerNotifySubscriber sends route stat information, including
def call(*args)
Experimental RBS support (using type sampling data from the type_fusion project).
def call: (*Time | Time | String | Hash | controller | String | action | String | request | ActionDispatch::Request | params | Hash | controller | String | action | String | headers | ActionDispatch::Http::Headers | format | Symbol | method | String | path | String | response | ActionDispatch::Response | status | Integer | view_runtime | Float | db_runtime | Float args) -> untyped
This signature was generated using 1 sample from 1 application.
def call(*args) return unless Airbrake::Config.instance.performance_stats routes = Airbrake::Rack::RequestStore[:routes] return if !routes || routes.none? event = Airbrake::Rails::Event.new(*args) routes.each do |route, _params| Airbrake.notify_request( method: event.method, route: route, status_code: event.status_code, timing: event.duration, time: event.time, ) end end