Method: NewRelic::Agent::Transaction#record_apdex

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

#record_apdexObject


828
829
830
831
832
833
834
835
836
837
838
839
840
# File 'lib/new_relic/agent/transaction.rb', line 828

def record_apdex
  return unless state.is_execution_traced?

  freeze_name_and_execute_if_not_ignored do
    if recording_web_transaction?
      record_apdex_metrics(APDEX_METRIC, APDEX_TXN_METRIC_PREFIX, apdex_t)
    else
      record_apdex_metrics(APDEX_OTHER_METRIC,
        APDEX_OTHER_TXN_METRIC_PREFIX,
        transaction_specific_apdex_t)
    end
  end
end