Sha256: 864344b44a6a59b15d3325f4a255d7d0ddf751f911172fdba73d95c786ab0840

Contents?: true

Size: 335 Bytes

Versions: 34

Compression:

Stored size: 335 Bytes

Contents

module SearchFlip
  class NullInstrumenter
    def instrument(name, payload = {})
      start(name, payload)

      begin
        yield(payload) if block_given?
      ensure
        finish(name, payload)
      end
    end

    def start(_name, _payload)
      true
    end

    def finish(_name, _payload)
      true
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
search_flip-4.0.0.beta5 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta4 lib/search_flip/null_instrumenter.rb
search_flip-3.2.1 lib/search_flip/null_instrumenter.rb
search_flip-3.2.0 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta3 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta2 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta1 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta lib/search_flip/null_instrumenter.rb
search_flip-3.1.2 lib/search_flip/null_instrumenter.rb
search_flip-3.1.1 lib/search_flip/null_instrumenter.rb
search_flip-3.1.0 lib/search_flip/null_instrumenter.rb
search_flip-3.0.0 lib/search_flip/null_instrumenter.rb
search_flip-3.0.0.beta6 lib/search_flip/null_instrumenter.rb
search_flip-3.0.0.beta5 lib/search_flip/null_instrumenter.rb