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