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-3.9.0 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta16 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta15 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta14 lib/search_flip/null_instrumenter.rb
search_flip-3.8.0 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta13 lib/search_flip/null_instrumenter.rb
search_flip-3.7.2 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta12 lib/search_flip/null_instrumenter.rb
search_flip-3.7.1 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta11 lib/search_flip/null_instrumenter.rb
search_flip-3.7.0 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta10 lib/search_flip/null_instrumenter.rb
search_flip-3.6.0 lib/search_flip/null_instrumenter.rb
search_flip-3.5.0 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta9 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta8 lib/search_flip/null_instrumenter.rb
search_flip-3.4.0 lib/search_flip/null_instrumenter.rb
search_flip-3.3.0 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta7 lib/search_flip/null_instrumenter.rb
search_flip-4.0.0.beta6 lib/search_flip/null_instrumenter.rb