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 15 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 11 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 19 def truncate_samples @samples.slice!(max_capacity..-1) end