# File lib/new_relic/agent.rb, line 582 def with_database_metric_name(model, method = nil, product = nil, &block) #THREAD_LOCAL_ACCESS if txn = Transaction.tl_current txn.with_database_metric_name(model, method, product, &block) else yield end end