Method: NewRelic::Agent::SqlTrace#initialize
- Defined in:
- lib/new_relic/agent/sql_sampler.rb
permalink #initialize(normalized_query, slow_sql, path, uri) ⇒ SqlTrace
Returns a new instance of SqlTrace.
298 299 300 301 302 303 304 |
# File 'lib/new_relic/agent/sql_sampler.rb', line 298 def initialize(normalized_query, slow_sql, path, uri) super() @params = slow_sql.base_params @sql_id = consistent_hash(normalized_query) set_primary(slow_sql, path, uri) record_data_point(float(slow_sql.duration)) end |