Sha256: cd6e021a3b121a11bd3804e121ff5858df18f8ed52c6e04e0bcab01ab3bb9759
Contents?: true
Size: 379 Bytes
Versions: 5
Compression:
Stored size: 379 Bytes
Contents
# encoding: utf-8 require 'one_apm/transaction/sample_buffer/transaction_sample_buffer' module OneApm class Transaction class SlowestSampleBuffer < TransactionSampleBuffer OA_CAPACITY = 1 def capacity OA_CAPACITY end def allow_sample?(sample) sample.threshold && sample.duration >= sample.threshold end end end end
Version data entries
5 entries across 5 versions & 1 rubygems