class NullInstrumenter

Ruby on Rails edge

Since edge

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

Inherits from

Object

Constants

Methods (defined here)

Methods (inherited)

From Object (17)
From ActiveSupport::NumericWithFormat (2)

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close