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.4.2 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.4.1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.4.0 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.7 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.7.rc1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.6 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.6.rc1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.5 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.5.rc1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.4 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.4.rc1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.3 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.3.rc1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.2 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.2.rc1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.1.rc1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.0 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.3.0.rc1 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
oneapm_rpm-1.2.9 lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb