A 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
Methods
- B
- F
- I
- S
Constants
| NULL_HANDLE | = | NullHandle.new.freeze |