Sha256: facc112293261574fe93e10c60b81d7550d3785f7ac316e0bdacd9c20ff5aa18
Contents?: true
Size: 564 Bytes
Versions: 7
Compression:
Stored size: 564 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
7 entries across 7 versions & 1 rubygems