Method: NewRelic::Agent::SqlSampler#has_room?

Defined in:
lib/new_relic/agent/sql_sampler.rb

#has_room?Boolean

this should always be called under the @samples_lock

Returns:

  • (Boolean)
[View source]

115
116
117
# File 'lib/new_relic/agent/sql_sampler.rb', line 115

def has_room?
  @sql_traces.size < MAX_SAMPLES
end