Method: NewRelic::Agent::Transaction#record_apdex_metrics

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

#record_apdex_metrics(rollup_metric, transaction_prefix, current_apdex_t) ⇒ Object

[View source]

842
843
844
845
846
847
848
849
850
851
852
853
# File 'lib/new_relic/agent/transaction.rb', line 842

def record_apdex_metrics(rollup_metric, transaction_prefix, current_apdex_t)
  return unless current_apdex_t

  total_duration = end_time - apdex_start
  apdex_bucket_global = apdex_bucket(total_duration, current_apdex_t)
  apdex_bucket_txn = apdex_bucket(duration, current_apdex_t)

  @metrics.record_unscoped(rollup_metric, apdex_bucket_global, current_apdex_t)
  @metrics.record_unscoped(APDEX_ALL_METRIC, apdex_bucket_global, current_apdex_t)
  txn_apdex_metric = @frozen_name.sub(/^[^\/]+\//, transaction_prefix)
  @metrics.record_unscoped(txn_apdex_metric, apdex_bucket_txn, current_apdex_t)
end