class NewRelic::Agent::Transaction::SyntheticsSampleBuffer
Public Instance Methods
Source
# File lib/new_relic/agent/transaction/synthetics_sample_buffer.rb, line 15 def allow_sample?(sample) !sample.synthetics_resource_id.nil? end
Source
# File lib/new_relic/agent/transaction/synthetics_sample_buffer.rb, line 11 def capacity NewRelic::Agent.config[:'synthetics.traces_limit'] end
Source
# File lib/new_relic/agent/transaction/synthetics_sample_buffer.rb, line 19 def truncate_samples @samples.slice!(max_capacity..-1) end