instance method instrument

Ruby on Rails edge

Since edge

Signature

instrument(name, payload = {}, &block)

No documentation comment.

Parameters

name req
payload opt = {}
block block
Source
# File activerecord/lib/active_record/connection_adapters/query_intent.rb, line 18
        def instrument(name, payload = {}, &block)
          event = @instrumenter.new_event(name, payload)
          begin
            event.record(&block)
          ensure
            @events << event
          end
        end

Defined in activerecord/lib/active_record/connection_adapters/query_intent.rb line 18 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::QueryIntent::EventBuffer

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