Sha256: ad5fc73bbbbeef94bb5b7b89e97e241ee509cb99a6707605e8ff17dfd26c45ec
Contents?: true
Size: 666 Bytes
Versions: 8
Compression:
Stored size: 666 Bytes
Contents
# This file is distributed under New Relic's license terms. # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. # frozen_string_literal: true require 'new_relic/agent/transaction/transaction_sample_buffer' module NewRelic module Agent class Transaction class SyntheticsSampleBuffer < TransactionSampleBuffer def capacity NewRelic::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 end
Version data entries
8 entries across 8 versions & 1 rubygems