Sha256: 0c3c0a438e7fb78d4debe7c5f45a1f20c1dbe282e5323c26a716b04650bead75
Contents?: true
Size: 555 Bytes
Versions: 7
Compression:
Stored size: 555 Bytes
Contents
# encoding: utf-8 # This file is distributed under Ting Yun's license terms. require 'ting_yun/agent/collector/transaction_sampler/transaction_sample_buffer_base' module TingYun module Agent module Collector class TransactionSampler class SlowestSampleBuffer < TransactionSampleBufferBase CAPACITY = 500 def capacity CAPACITY end def allow_sample?(sample) sample.threshold && sample.duration >= sample.threshold end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems