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.3.6 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.3.6.rc1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.3.5 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.3.5.rc1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.3.4 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.3.4.rc1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.3.3 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.3.3.rc1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.3.2 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.3.2.rc1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.3.1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.3.1.rc1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.3.0 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.3.0.rc1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.9 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.9.rc1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.8 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.8.rc1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.7 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
oneapm_rpm-1.2.7.rc1 lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb