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