Sha256: df28a02091dfcd92a6f5a0991a5921f2267d4e973e169104484f7e3f4fb3c53b
Contents?: true
Size: 373 Bytes
Versions: 37
Compression:
Stored size: 373 Bytes
Contents
# encoding: utf-8 require 'one_apm/transaction/sample_buffer/transaction_sample_buffer' module OneApm 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
Version data entries
37 entries across 37 versions & 1 rubygems