Sha256: cb5ba7469e617214d11c49a41384ba92c5e57c37a1ce31d4794e613ced60ca81
Contents?: true
Size: 684 Bytes
Versions: 2
Compression:
Stored size: 684 Bytes
Contents
# encoding: utf-8 # 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
newrelic_rpm-8.10.1 | lib/new_relic/agent/transaction/synthetics_sample_buffer.rb |
newrelic_rpm-8.10.0 | lib/new_relic/agent/transaction/synthetics_sample_buffer.rb |