Module: NewRelic::Agent::LogPriority

Extended by:
LogPriority
Included in:
LogPriority
Defined in:
lib/new_relic/agent/log_priority.rb

Instance Method Summary collapse

Instance Method Details

#priority_for(txn) ⇒ Object



13
14
15
16
17
# File 'lib/new_relic/agent/log_priority.rb', line 13

def priority_for(txn)
  return txn.priority if txn

  rand.round(NewRelic::PRIORITY_PRECISION)
end