Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Do not explicitly record metrics - trace_execution_scoped will automatically do it #25

Commits on Feb 27, 2014

  1. Do not explicitly metrics - trace_execution_scoped will automatically…

    … do it
    
    The previous code was double-counting metrics for all queries through Moped,
    because of the fact that trace_execution_scoped will automatically record
    metrics. The net effect was that the database band on the overview graph in New
    Relic was twice as large as it should have been (because the 'ActiveRecord/all'
    metric was being recorded twice).
    
    This change removes the additional explicit call to record_metrics (which is not
    a public API anyhow) so that metrics are no longer double-counted.
    benweint committed Feb 27, 2014
    Configuration menu
    Copy the full SHA
    a79bfa2 View commit details
    Browse the repository at this point in the history