Method: NewRelic::Agent::SqlSampler#remove_shortest_trace
- Defined in:
- lib/new_relic/agent/sql_sampler.rb
#remove_shortest_trace ⇒ Object
this should always be called under the @samples_lock
120 121 122 123 |
# File 'lib/new_relic/agent/sql_sampler.rb', line 120 def remove_shortest_trace shortest_key, _ = @sql_traces.min_by { |(_, trace)| trace.max_call_time } @sql_traces.delete(shortest_key) end |