Method: NewRelic::Agent::SqlTrace#aggregate

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

#aggregate(slow_sql, path, uri) ⇒ Object

[View source]

315
316
317
318
319
320
321
# File 'lib/new_relic/agent/sql_sampler.rb', line 315

def aggregate(slow_sql, path, uri)
  if slow_sql.duration > max_call_time
    set_primary(slow_sql, path, uri)
  end

  record_data_point(float(slow_sql.duration))
end