class OneApm::Transaction::SyntheticsSampleBuffer

Public Instance Methods

allow_sample?(sample) click to toggle source
# File lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb, line 12
def allow_sample?(sample)
  sample.synthetics_resource_id != nil
end
capacity() click to toggle source
# File lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb, line 8
def capacity
  OneApm::Manager.config[:'synthetics.traces_limit']
end
truncate_samples() click to toggle source
# File lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb, line 16
def truncate_samples
  @samples.slice!(max_capacity..-1)
end