class NullInstrumenter
Ruby on Rails edge
Since edgeA no-op instrumenter that executes blocks without publishing any notifications. Useful for disabling instrumentation on specific connections or components.
This is stateless and thread-safe, so a single instance can be shared.
ActiveSupport::Notifications.null_instrumenter.instrument("sql.active_record") do
# executes without any notification overhead
end
Inherits from
Constants
Methods (defined here)
- # build_handle
- # finish
- # instrument
- # start
Methods (inherited)
From Object
(17)
- # acts_like?
- # blank?
- # deep_dup
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # with
- # with_options
From ActiveSupport::NumericWithFormat
(2)
- # to_formatted_s
- # to_fs