Sha256: 154f3397e1b43d0414ce980aad86d6a130b4a461c5f647dc32568ecd0fa69e2b

Contents?: true

Size: 566 Bytes

Versions: 11

Compression:

Stored size: 566 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.

require 'new_relic/agent/transaction/transaction_sample_buffer'

module NewRelic
  module Agent
    class Transaction
      class SlowestSampleBuffer < TransactionSampleBuffer

        CAPACITY = 1

        def capacity
          CAPACITY
        end

        def allow_sample?(sample)
          sample.threshold && sample.duration >= sample.threshold
        end

      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
newrelic_rpm-8.2.0 lib/new_relic/agent/transaction/slowest_sample_buffer.rb
newrelic_rpm-8.1.0 lib/new_relic/agent/transaction/slowest_sample_buffer.rb
newrelic_rpm-8.0.0 lib/new_relic/agent/transaction/slowest_sample_buffer.rb
newrelic_rpm-7.2.0 lib/new_relic/agent/transaction/slowest_sample_buffer.rb
newrelic_rpm-7.1.0 lib/new_relic/agent/transaction/slowest_sample_buffer.rb
newrelic_rpm-7.0.0 lib/new_relic/agent/transaction/slowest_sample_buffer.rb
newrelic_rpm-6.15.0 lib/new_relic/agent/transaction/slowest_sample_buffer.rb
newrelic_rpm-6.14.0 lib/new_relic/agent/transaction/slowest_sample_buffer.rb
newrelic_rpm-6.13.1 lib/new_relic/agent/transaction/slowest_sample_buffer.rb
newrelic_rpm-6.13.0 lib/new_relic/agent/transaction/slowest_sample_buffer.rb
newrelic_rpm-6.12.0.367 lib/new_relic/agent/transaction/slowest_sample_buffer.rb