Sha256: c352952c65d95c11e829d27ea3018611b93800e5c796548c69ce403ff9027833
Contents?: true
Size: 455 Bytes
Versions: 3
Compression:
Stored size: 455 Bytes
Contents
# encoding: utf-8 require 'one_apm/transaction/sample_buffer/transaction_sample_buffer' module OneApm class Transaction class SyntheticsSampleBuffer < TransactionSampleBuffer def capacity OneApm::Agent.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
3 entries across 3 versions & 1 rubygems