Sha256: fe9a1c986b9b631b6f12ba5a924701185f9a23397d8a0857a2e518962fb82904

Contents?: true

Size: 350 Bytes

Versions: 5

Compression:

Stored size: 350 Bytes

Contents

# encoding: utf-8

require 'one_apm/transaction/sample_buffer/transaction_sample_buffer'

module OneApm
  class Transaction
    class ForcePersistSampleBuffer < TransactionSampleBuffer

      OA_CAPACITY = 10

      def capacity
        OA_CAPACITY
      end

      def allow_sample?(sample)
        sample.force_persist
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
oneapm_rpm-1.4.2 lib/one_apm/transaction/sample_buffer/force_persist_sample_buffer.rb
oneapm_rpm-1.4.1 lib/one_apm/transaction/sample_buffer/force_persist_sample_buffer.rb
oneapm_rpm-1.4.0 lib/one_apm/transaction/sample_buffer/force_persist_sample_buffer.rb
oneapm_rpm-1.3.7 lib/one_apm/transaction/sample_buffer/force_persist_sample_buffer.rb
oneapm_rpm-1.3.7.rc1 lib/one_apm/transaction/sample_buffer/force_persist_sample_buffer.rb