Sha256: 18ee267e1f95607062aecb8e5993cdda21849c0f1ebf95ebeb2d52f9da457f29

Contents?: true

Size: 457 Bytes

Versions: 39

Compression:

Stored size: 457 Bytes

Contents

# encoding: utf-8

require 'one_apm/transaction/sample_buffer/transaction_sample_buffer'

module OneApm
  class Transaction
    class SyntheticsSampleBuffer < TransactionSampleBuffer
      def capacity
        OneApm::Manager.config[:'synthetics.traces_limit']
      end

      def allow_sample?(sample)
        sample.synthetics_resource_id != nil
      end

      def truncate_samples
        @samples.slice!(max_capacity..-1)
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
oneapm_rpm-1.2.9.rc1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.8 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.8.rc1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.7 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.7.rc1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.6 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.6.rc1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.5 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.5.rc1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.4 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.4.rc1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.3 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.3.rc2 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.2 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.2.rc lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.1.rc lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.0 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.1.3 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb