Sha256: df28a02091dfcd92a6f5a0991a5921f2267d4e973e169104484f7e3f4fb3c53b

Contents?: true

Size: 373 Bytes

Versions: 37

Compression:

Stored size: 373 Bytes

Contents

# encoding: utf-8

require 'one_apm/transaction/sample_buffer/transaction_sample_buffer'

module OneApm
  class Transaction
    class SlowestSampleBuffer < TransactionSampleBuffer

      CAPACITY = 1

      def capacity
        CAPACITY
      end

      def allow_sample?(sample)
        sample.threshold && sample.duration >= sample.threshold
      end

    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
oneapm_rpm-1.2.6 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.6.rc1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.5 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.5.rc1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.4 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.4.rc1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.3 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.3.rc2 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.2 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.2.rc lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.1.rc lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.0 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.1.3 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.1.2 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.1.1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.1.0 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb