class NewRelic::Agent::Transaction::SyntheticsSampleBuffer

Public Instance Methods

allow_sample?(sample) click to toggle source
# File lib/new_relic/agent/transaction/synthetics_sample_buffer.rb, line 14
def allow_sample?(sample)
  sample.synthetics_resource_id != nil
end
capacity() click to toggle source
# File lib/new_relic/agent/transaction/synthetics_sample_buffer.rb, line 10
def capacity
  NewRelic::Agent.config[:'synthetics.traces_limit']
end
truncate_samples() click to toggle source
# File lib/new_relic/agent/transaction/synthetics_sample_buffer.rb, line 18
def truncate_samples
  @samples.slice!(max_capacity..-1)
end