Sha256: 26c3bb934aa648bac12097ed45ca3e2b2a529a8b8375be9af8e0826c235e5a81
Contents?: true
Size: 554 Bytes
Versions: 3
Compression:
Stored size: 554 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 = 20 def capacity CAPACITY end def allow_sample?(sample) sample.threshold && sample.duration >= sample.threshold end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems