Method: NewRelic::Agent::StatsEngine#record_unscoped_metrics
- Defined in:
- lib/new_relic/agent/stats_engine.rb
permalink #record_unscoped_metrics(state, metric_names, value = nil, aux = nil, &blk) ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/new_relic/agent/stats_engine.rb', line 68 def record_unscoped_metrics(state, metric_names, value = nil, aux = nil, &blk) txn = state.current_transaction if txn txn.metrics.record_unscoped(metric_names, value, aux, &blk) else specs = coerce_to_metric_spec_array(metric_names, nil) with_stats_lock do @stats_hash.record(specs, value, aux, &blk) end end end |